home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1994 / MacHack 1994.toast / MacHack™ 1987-1994 / MacHack™ '87 / Source ƒ.sea / Source ƒ / Pascal ƒ / Pascal utils / Utility Documentation < prev    next >
MacBinary  |  1986-12-09  |  14.8 KB  |  [TEXT/QED1]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Dec 9 02:33:12 1986, modified Tue Dec 9 02:33:12 1986, creator 'QED1', type ASCII, 14487 bytes "Utility Documentation" , at 0x3917 380 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[QED1]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 15 55 74 69 6c 69 74 | 79 20 44 6f 63 75 6d 65 |..Utilit|y Docume|
|00000010| 6e 74 61 74 69 6f 6e 00 | 00 00 00 00 00 00 00 00 |ntation.|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 51 45 44 | 31 01 00 ff ff ff ff 00 |.TEXTQED|1.......|
|00000050| 00 00 00 00 00 38 97 00 | 00 01 7c 9c 01 79 b8 9c |.....8..|..|..y..|
|00000060| 01 79 b8 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.y......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 38 25 00 00 |........|....8%..|
|00000080| 09 54 68 65 20 46 6f 6c | 6c 6f 77 69 6e 67 20 69 |.The Fol|lowing i|
|00000090| 73 20 74 68 65 20 49 6e | 74 65 72 66 61 63 65 20 |s the In|terface |
|000000a0| 70 61 72 74 20 6f 66 20 | 61 20 55 74 69 6c 69 74 |part of |a Utilit|
|000000b0| 69 65 73 20 55 6e 69 74 | 20 77 72 69 74 74 65 6e |ies Unit| written|
|000000c0| 20 62 79 0d 44 61 76 69 | 64 20 4f 27 52 6f 75 72 | by.Davi|d O'Rour|
|000000d0| 6b 65 2e 20 20 54 68 65 | 20 70 75 72 70 6f 73 65 |ke. The| purpose|
|000000e0| 20 69 73 20 74 6f 20 70 | 72 6f 76 69 64 65 20 73 | is to p|rovide s|
|000000f0| 6f 6d 65 20 67 65 6e 65 | 72 61 6c 20 75 74 69 6c |ome gene|ral util|
|00000100| 69 74 69 65 73 20 74 68 | 61 74 20 77 69 6c 6c 0d |ities th|at will.|
|00000110| 65 6e 68 61 6e 63 65 20 | 74 68 65 20 75 73 65 73 |enhance |the uses|
|00000120| 20 6f 66 20 73 74 61 6e | 64 61 72 64 20 52 4f 4d | of stan|dard ROM|
|00000130| 20 63 61 6c 6c 65 73 2e | 20 20 4e 6f 6e 65 20 6f | calles.| None o|
|00000140| 66 20 74 68 65 20 72 6f | 75 74 69 6e 65 73 20 61 |f the ro|utines a|
|00000150| 72 65 20 76 65 72 79 20 | 63 6f 6d 70 6c 65 78 0d |re very |complex.|
|00000160| 62 75 74 20 74 68 65 79 | 20 61 72 65 20 75 73 65 |but they| are use|
|00000170| 66 75 6c 20 61 6e 64 20 | 68 61 76 65 20 61 20 73 |ful and |have a s|
|00000180| 74 61 6e 64 61 72 64 20 | 69 6e 74 65 72 66 61 63 |tandard |interfac|
|00000190| 65 20 74 68 61 74 20 77 | 61 73 20 74 68 6f 75 67 |e that w|as thoug|
|000001a0| 68 74 20 6f 75 74 20 77 | 69 74 68 0d 73 6f 6d 65 |ht out w|ith.some|
|000001b0| 20 63 61 72 65 2e 20 20 | 49 20 68 6f 70 65 20 79 | care. |I hope y|
|000001c0| 6f 75 20 66 69 6e 64 20 | 74 68 65 6d 20 75 73 65 |ou find |them use|
|000001d0| 66 75 6c 2e 0d 0d 75 6e | 69 74 20 55 74 69 6c 69 |ful...un|it Utili|
|000001e0| 74 69 65 73 3b 0d 0d 69 | 6e 74 65 72 66 61 63 65 |ties;..i|nterface|
|000001f0| 0d 0d 09 63 6f 6e 73 74 | 0d 09 09 7b 55 73 65 66 |...const|...{Usef|
|00000200| 75 6c 20 4d 61 63 43 6f | 6e 73 74 61 6e 74 73 7d |ul MacCo|nstants}|
|00000210| 0d 09 09 44 65 66 61 75 | 6c 74 49 74 65 6d 20 20 |...Defau|ltItem |
|00000220| 20 3d 20 31 3b 0d 09 09 | 4d 61 72 67 69 6e 35 20 | = 1;...|Margin5 |
|00000230| 20 20 20 20 20 20 3d 20 | 35 3b 0d 09 09 4d 61 72 | = |5;...Mar|
|00000240| 67 69 6e 31 36 20 20 20 | 20 20 20 3d 20 31 36 3b |gin16 | = 16;|
|00000250| 0d 09 09 53 63 72 6f 6c | 6c 42 61 72 53 69 7a 65 |...Scrol|lBarSize|
|00000260| 20 3d 20 31 36 3b 0d 09 | 09 57 69 6e 64 6f 77 5f | = 16;..|.Window_|
|00000270| 54 69 74 6c 65 20 20 3d | 20 31 38 3b 0d 09 09 4d |Title =| 18;...M|
|00000280| 65 6e 75 42 61 72 53 69 | 7a 65 20 20 20 3d 20 32 |enuBarSi|ze = 2|
|00000290| 30 3b 0d 09 09 4e 65 77 | 52 6f 6d 73 49 44 20 20 |0;...New|RomsID |
|000002a0| 20 20 20 3d 20 31 31 37 | 3b 0d 09 09 44 65 61 64 | = 117|;...Dead|
|000002b0| 43 6f 6e 74 72 6f 6c 20 | 20 20 3d 20 32 35 35 3b |Control | = 255;|
|000002c0| 0d 09 09 54 45 53 65 6c | 53 74 61 72 74 20 20 20 |...TESel|Start |
|000002d0| 20 3d 20 30 3b 0d 09 09 | 54 45 53 65 6c 45 6e 64 | = 0;...|TESelEnd|
|000002e0| 20 20 20 20 20 20 3d 20 | 33 32 37 36 37 3b 0d 09 | = |32767;..|
|000002f0| 09 54 6f 6f 4d 75 63 68 | 20 20 20 20 20 20 20 3d |.TooMuch| =|
|00000300| 20 31 36 37 37 37 32 31 | 36 3b 0d 09 09 0d 09 09 | 1677721|6;......|
|00000310| 7b 55 73 65 66 75 6c 20 | 4d 61 63 20 4b 65 79 20 |{Useful |Mac Key |
|00000320| 63 6f 64 65 20 63 6f 6e | 73 74 61 6e 74 73 2e 20 |code con|stants. |
|00000330| 20 41 53 43 49 49 20 63 | 6f 64 65 73 7d 0d 09 09 | ASCII c|odes}...|
|00000340| 45 54 58 09 09 09 09 09 | 3d 20 24 30 33 3b 09 7b |ETX.....|= $03;.{|
|00000350| 45 6e 74 65 72 20 4b 65 | 79 7d 0d 09 09 45 6e 74 |Enter Ke|y}...Ent|
|00000360| 65 72 4b 65 79 09 09 3d | 20 45 54 58 3b 0d 09 09 |erKey..=| ETX;...|
|00000370| 42 53 09 09 09 09 09 3d | 20 24 30 38 3b 09 7b 42 |BS.....=| $08;.{B|
|00000380| 61 63 6b 53 70 61 63 65 | 20 4b 65 79 7d 0d 09 09 |ackSpace| Key}...|
|00000390| 43 52 09 09 09 09 09 3d | 20 24 30 44 3b 09 7b 52 |CR.....=| $0D;.{R|
|000003a0| 65 74 75 72 6e 20 4b 65 | 79 7d 0d 09 09 52 65 74 |eturn Ke|y}...Ret|
|000003b0| 75 72 6e 4b 65 79 09 09 | 3d 20 43 52 3b 0d 09 09 |urnKey..|= CR;...|
|000003c0| 48 54 09 09 09 09 09 3d | 20 24 30 39 3b 09 7b 54 |HT.....=| $09;.{T|
|000003d0| 41 42 20 4b 65 79 7d 0d | 09 09 54 61 62 4b 65 79 |AB Key}.|..TabKey|
|000003e0| 09 09 09 3d 09 48 54 3b | 0d 09 09 45 53 43 09 09 |...=.HT;|...ESC..|
|000003f0| 09 09 09 3d 09 24 31 42 | 3b 09 7b 45 73 63 61 70 |...=.$1B|;.{Escap|
|00000400| 65 20 4b 65 79 7d 0d 09 | 09 46 53 09 09 09 09 09 |e Key}..|.FS.....|
|00000410| 3d 09 24 31 43 3b 09 7b | 4c 65 66 74 20 61 72 72 |=.$1C;.{|Left arr|
|00000420| 6f 77 20 6b 65 79 7d 0d | 09 09 4c 65 66 74 41 72 |ow key}.|..LeftAr|
|00000430| 72 6f 77 09 09 3d 09 46 | 53 3b 0d 09 09 47 53 09 |row..=.F|S;...GS.|
|00000440| 09 09 09 09 3d 09 24 31 | 44 3b 09 7b 52 69 67 68 |....=.$1|D;.{Righ|
|00000450| 74 20 61 72 72 6f 77 20 | 6b 65 79 7d 0d 09 09 52 |t arrow |key}...R|
|00000460| 69 67 68 74 41 72 72 6f | 77 09 3d 20 47 53 3b 0d |ightArro|w.= GS;.|
|00000470| 09 09 52 53 09 09 09 09 | 09 3d 09 24 31 45 3b 09 |..RS....|.=.$1E;.|
|00000480| 7b 55 70 20 61 72 72 6f | 77 20 6b 65 79 7d 0d 09 |{Up arro|w key}..|
|00000490| 09 55 70 41 72 72 6f 77 | 09 09 09 3d 09 52 53 3b |.UpArrow|...=.RS;|
|000004a0| 0d 09 09 55 53 09 09 09 | 09 09 3d 09 24 31 46 3b |...US...|..=.$1F;|
|000004b0| 09 7b 44 6f 77 6e 20 61 | 72 72 6f 77 20 6b 65 79 |.{Down a|rrow key|
|000004c0| 7d 0d 09 09 44 6f 77 6e | 41 72 72 6f 77 09 09 3d |}...Down|Arrow..=|
|000004d0| 20 55 53 3b 0d 09 09 45 | 6e 64 6f 66 4c 69 6e 65 | US;...E|ndofLine|
|000004e0| 09 09 3d 20 24 37 46 3b | 09 7b 45 6e 64 20 6f 66 |..= $7F;|.{End of|
|000004f0| 20 4c 69 6e 65 20 44 65 | 6c 69 6d 65 74 65 72 7d | Line De|limeter}|
|00000500| 0d 09 09 4e 6f 42 72 6b | 53 70 61 63 65 09 3d 20 |...NoBrk|Space.= |
|00000510| 24 43 41 3b 09 7b 4e 6f | 6e 65 20 42 72 65 61 6b |$CA;.{No|ne Break|
|00000520| 69 6e 67 20 73 70 61 63 | 65 20 66 6f 72 20 4d 6f |ing spac|e for Mo|
|00000530| 6e 6f 20 53 70 61 63 69 | 6e 67 7d 0d 0d 09 20 20 |no Spaci|ng}... |
|00000540| 7b 55 74 69 6c 69 74 79 | 20 44 69 61 6c 6f 67 20 |{Utility| Dialog |
|00000550| 43 6f 6e 73 74 61 6e 74 | 73 7d 0d 09 20 20 59 65 |Constant|s}.. Ye|
|00000560| 73 4e 6f 43 61 6e 63 65 | 6c 49 44 20 3d 20 31 39 |sNoCance|lID = 19|
|00000570| 36 36 3b 0d 09 20 20 09 | 59 65 73 42 75 74 74 6f |66;.. .|YesButto|
|00000580| 6e 20 09 09 3d 20 31 3b | 0d 09 20 20 09 43 61 6e |n ..= 1;|.. .Can|
|00000590| 63 65 6c 42 75 74 74 6f | 6e 09 3d 09 32 3b 0d 09 |celButto|n.=.2;..|
|000005a0| 20 20 09 4e 6f 42 75 74 | 74 6f 6e 09 09 09 3d 09 | .NoBut|ton...=.|
|000005b0| 33 3b 0d 09 20 20 09 53 | 74 61 74 69 63 54 65 78 |3;.. .S|taticTex|
|000005c0| 74 09 09 3d 09 34 3b 0d | 09 20 20 09 0d 09 74 79 |t..=.4;.|. ...ty|
|000005d0| 70 65 0d 09 09 47 65 6e | 65 72 69 63 52 65 73 70 |pe...Gen|ericResp|
|000005e0| 6f 6e 73 65 20 3d 20 28 | 6e 75 6c 6c 52 65 73 70 |onse = (|nullResp|
|000005f0| 6f 6e 73 65 2c 20 59 65 | 73 52 65 73 70 6f 6e 73 |onse, Ye|sRespons|
|00000600| 65 2c 20 43 61 6e 63 65 | 6c 52 65 73 70 6f 6e 73 |e, Cance|lRespons|
|00000610| 65 2c 20 4e 6f 52 65 73 | 70 6f 6e 73 65 29 3b 0d |e, NoRes|ponse);.|
|00000620| 0d 09 76 61 72 0d 09 20 | 20 74 68 65 44 69 61 6c |..var.. | theDial|
|00000630| 6f 67 46 69 6c 74 65 72 | 09 3a 20 50 72 6f 63 50 |ogFilter|.: ProcP|
|00000640| 74 72 3b 09 7b 41 20 50 | 6f 69 6e 74 65 72 20 74 |tr;.{A P|ointer t|
|00000650| 6f 20 74 68 65 20 44 69 | 61 6c 6f 67 20 46 69 6c |o the Di|alog Fil|
|00000660| 74 65 72 20 50 72 6f 63 | 65 64 75 72 65 7d 0d 09 |ter Proc|edure}..|
|00000670| 20 20 53 63 72 65 65 6e | 53 69 7a 65 09 09 09 3a | Screen|Size...:|
|00000680| 09 52 65 63 74 3b 09 09 | 09 7b 41 20 47 6c 6f 62 |.Rect;..|.{A Glob|
|00000690| 61 6c 20 63 6f 6e 73 74 | 61 6e 74 20 63 6f 6e 74 |al const|ant cont|
|000006a0| 61 69 6e 69 6e 67 20 74 | 68 65 20 73 63 72 65 65 |aining t|he scree|
|000006b0| 6e 20 73 69 7a 65 7d 0d | 0d 09 70 72 6f 63 65 64 |n size}.|..proced|
|000006c0| 75 72 65 20 53 74 61 6e | 64 61 72 64 49 6e 69 74 |ure Stan|dardInit|
|000006d0| 3b 0d 0d 09 66 75 6e 63 | 74 69 6f 6e 20 47 65 74 |;...func|tion Get|
|000006e0| 45 76 65 6e 20 28 74 68 | 65 4e 75 6d 3a 20 4c 4f |Even (th|eNum: LO|
|000006f0| 4e 47 49 4e 54 29 3a 20 | 4c 4f 4e 47 49 4e 54 3b |NGINT): |LONGINT;|
|00000700| 0d 09 66 75 6e 63 74 69 | 6f 6e 20 47 65 74 52 65 |..functi|on GetRe|
|00000710| 63 74 53 69 7a 65 20 28 | 74 68 65 52 65 63 74 3a |ctSize (|theRect:|
|00000720| 20 52 65 63 74 29 3a 20 | 50 6f 69 6e 74 3b 0d 09 | Rect): |Point;..|
|00000730| 66 75 6e 63 74 69 6f 6e | 20 4e 65 77 52 6f 6d 73 |function| NewRoms|
|00000740| 3a 20 42 4f 4f 4c 45 41 | 4e 3b 0d 09 66 75 6e 63 |: BOOLEA|N;..func|
|00000750| 74 69 6f 6e 20 48 46 53 | 52 75 6e 6e 69 6e 67 3a |tion HFS|Running:|
|00000760| 20 42 4f 4f 4c 45 41 4e | 3b 0d 09 66 75 6e 63 74 | BOOLEAN|;..funct|
|00000770| 69 6f 6e 20 4f 70 74 4b | 65 79 44 6f 77 6e 20 09 |ion OptK|eyDown .|
|00000780| 28 74 68 65 4d 6f 64 69 | 66 69 65 72 73 3a 20 49 |(theModi|fiers: I|
|00000790| 4e 54 45 47 45 52 29 3a | 20 42 4f 4f 4c 45 41 4e |NTEGER):| BOOLEAN|
|000007a0| 3b 0d 09 66 75 6e 63 74 | 69 6f 6e 20 43 61 70 73 |;..funct|ion Caps|
|000007b0| 4c 6f 63 6b 44 6f 77 6e | 20 28 74 68 65 4d 6f 64 |LockDown| (theMod|
|000007c0| 69 66 69 65 72 73 3a 20 | 49 4e 54 45 47 45 52 29 |ifiers: |INTEGER)|
|000007d0| 3a 20 42 4f 4f 4c 45 41 | 4e 3b 0d 09 66 75 6e 63 |: BOOLEA|N;..func|
|000007e0| 74 69 6f 6e 20 53 68 69 | 66 74 4b 65 79 44 6f 77 |tion Shi|ftKeyDow|
|000007f0| 6e 09 28 74 68 65 4d 6f | 64 69 66 69 65 72 73 3a |n.(theMo|difiers:|
|00000800| 20 49 4e 54 45 47 45 52 | 29 3a 20 42 4f 4f 4c 45 | INTEGER|): BOOLE|
|00000810| 41 4e 3b 0d 09 66 75 6e | 63 74 69 6f 6e 20 43 6d |AN;..fun|ction Cm|
|00000820| 64 4b 65 79 44 6f 77 6e | 20 09 28 74 68 65 4d 6f |dKeyDown| .(theMo|
|00000830| 64 69 66 69 65 72 73 3a | 20 49 4e 54 45 47 45 52 |difiers:| INTEGER|
|00000840| 29 3a 20 42 4f 4f 4c 45 | 41 4e 3b 0d 09 66 75 6e |): BOOLE|AN;..fun|
|00000850| 63 74 69 6f 6e 20 57 69 | 6e 64 6f 77 41 63 74 69 |ction Wi|ndowActi|
|00000860| 76 61 74 65 20 28 74 68 | 65 4d 6f 64 69 66 69 65 |vate (th|eModifie|
|00000870| 72 73 3a 20 49 4e 54 45 | 47 45 52 29 3a 20 42 4f |rs: INTE|GER): BO|
|00000880| 4f 4c 45 41 4e 3b 0d 0d | 09 70 72 6f 63 65 64 75 |OLEAN;..|.procedu|
|00000890| 72 65 20 43 65 6e 74 65 | 72 49 6e 52 65 63 74 20 |re Cente|rInRect |
|000008a0| 28 56 41 52 20 74 68 65 | 52 65 63 74 3a 20 52 65 |(VAR the|Rect: Re|
|000008b0| 63 74 3b 20 74 68 65 43 | 65 6e 74 65 72 52 65 63 |ct; theC|enterRec|
|000008c0| 74 3a 20 52 65 63 74 3b | 0d 09 20 20 20 20 20 20 |t: Rect;|.. |
|000008d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000008e0| 20 20 76 4f 66 66 53 65 | 74 2c 20 68 4f 66 66 53 | vOffSe|t, hOffS|
|000008f0| 65 74 3a 20 49 4e 54 45 | 47 45 52 29 3b 0d 09 70 |et: INTE|GER);..p|
|00000900| 72 6f 63 65 64 75 72 65 | 20 43 65 6e 74 65 72 49 |rocedure| CenterI|
|00000910| 6e 53 63 72 65 65 6e 20 | 28 56 41 52 20 74 68 65 |nScreen |(VAR the|
|00000920| 52 65 63 74 3a 20 52 65 | 63 74 3b 20 76 4f 66 66 |Rect: Re|ct; vOff|
|00000930| 53 65 74 2c 20 68 4f 66 | 66 53 65 74 3a 20 49 4e |Set, hOf|fSet: IN|
|00000940| 54 45 47 45 52 29 3b 0d | 09 0d 09 66 75 6e 63 74 |TEGER);.|...funct|
|00000950| 69 6f 6e 20 47 65 74 57 | 69 6e 64 6f 77 4b 69 6e |ion GetW|indowKin|
|00000960| 64 20 28 74 68 65 57 69 | 6e 64 6f 77 3a 20 57 69 |d (theWi|ndow: Wi|
|00000970| 6e 64 6f 77 50 74 72 29 | 3a 20 49 4e 54 45 47 45 |ndowPtr)|: INTEGE|
|00000980| 52 3b 0d 09 66 75 6e 63 | 74 69 6f 6e 20 46 72 6f |R;..func|tion Fro|
|00000990| 6e 74 53 79 73 57 69 6e | 64 6f 77 3a 20 42 4f 4f |ntSysWin|dow: BOO|
|000009a0| 4c 45 41 4e 3b 0d 09 66 | 75 6e 63 74 69 6f 6e 20 |LEAN;..f|unction |
|000009b0| 43 65 6e 74 65 72 4e 65 | 77 57 69 6e 64 6f 77 20 |CenterNe|wWindow |
|000009c0| 28 74 68 65 57 69 6e 64 | 6f 77 49 44 3a 20 49 4e |(theWind|owID: IN|
|000009d0| 54 45 47 45 52 3b 20 77 | 53 74 6f 72 61 67 65 3a |TEGER; w|Storage:|
|000009e0| 20 50 74 72 3b 0d 09 20 | 20 20 20 20 20 20 20 20 | Ptr;.. | |
|000009f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a00| 20 62 65 68 69 6e 64 3a | 20 57 69 6e 64 6f 77 50 | behind:| WindowP|
|00000a10| 74 72 3b 20 76 4f 66 66 | 53 65 74 2c 20 68 4f 66 |tr; vOff|Set, hOf|
|00000a20| 66 53 65 74 3a 20 49 4e | 54 45 47 45 52 29 3a 20 |fSet: IN|TEGER): |
|00000a30| 57 69 6e 64 6f 77 50 74 | 72 3b 0d 0d 09 70 72 6f |WindowPt|r;...pro|
|00000a40| 63 65 64 75 72 65 20 54 | 6f 67 67 6c 65 42 75 74 |cedure T|oggleBut|
|00000a50| 74 6f 6e 20 28 74 68 65 | 43 6f 6e 74 72 6f 6c 3a |ton (the|Control:|
|00000a60| 20 43 6f 6e 74 72 6f 6c | 48 61 6e 64 6c 65 29 3b | Control|Handle);|
|00000a70| 0d 09 0d 20 20 66 75 6e | 63 74 69 6f 6e 20 20 44 |... fun|ction D|
|00000a80| 6f 53 46 47 65 74 20 28 | 74 68 65 46 69 6c 65 43 |oSFGet (|theFileC|
|00000a90| 6f 75 6e 74 3a 20 49 4e | 54 45 47 45 52 3b 20 74 |ount: IN|TEGER; t|
|00000aa0| 68 65 54 79 70 65 4c 69 | 73 74 3a 20 53 46 54 79 |heTypeLi|st: SFTy|
|00000ab0| 70 65 4c 69 73 74 3b 0d | 20 20 20 20 20 20 20 20 |peList;.| |
|00000ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 76 4f | | vO|
|00000ad0| 66 66 53 65 74 2c 20 68 | 4f 66 66 53 65 74 3a 20 |ffSet, h|OffSet: |
|00000ae0| 49 4e 54 45 47 45 52 29 | 3a 20 53 46 52 65 70 6c |INTEGER)|: SFRepl|
|00000af0| 79 3b 0d 09 66 75 6e 63 | 74 69 6f 6e 20 20 44 6f |y;..func|tion Do|
|00000b00| 53 46 50 75 74 20 28 74 | 68 65 53 61 76 65 50 72 |SFPut (t|heSavePr|
|00000b10| 6f 6d 70 74 2c 20 4f 72 | 69 67 46 69 6c 65 4e 61 |ompt, Or|igFileNa|
|00000b20| 6d 65 3a 20 73 74 72 32 | 35 35 3b 0d 09 20 20 20 |me: str2|55;.. |
|00000b30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b40| 20 76 4f 66 66 53 65 74 | 2c 20 68 4f 66 66 53 65 | vOffSet|, hOffSe|
|00000b50| 74 3a 20 49 4e 54 45 47 | 45 52 29 3a 20 53 46 52 |t: INTEG|ER): SFR|
|00000b60| 65 70 6c 79 3b 0d 0d 09 | 66 75 6e 63 74 69 6f 6e |eply;...|function|
|00000b70| 20 43 65 6e 74 65 72 4e | 65 77 44 69 61 6c 6f 67 | CenterN|ewDialog|
|00000b80| 20 28 74 68 65 44 69 61 | 6c 6f 67 49 44 3a 20 49 | (theDia|logID: I|
|00000b90| 4e 54 45 47 45 52 3b 20 | 64 53 74 6f 72 61 67 65 |NTEGER; |dStorage|
|00000ba0| 3a 20 50 74 72 3b 0d 09 | 20 20 20 20 20 20 20 20 |: Ptr;..| |
|00000bb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000bc0| 20 20 62 65 68 69 6e 64 | 3a 20 57 69 6e 64 6f 77 | behind|: Window|
|00000bd0| 50 74 72 3b 20 76 4f 66 | 66 53 65 74 2c 20 68 4f |Ptr; vOf|fSet, hO|
|00000be0| 66 66 53 65 74 3a 20 49 | 4e 54 45 47 45 52 29 3a |ffSet: I|NTEGER):|
|00000bf0| 20 44 69 61 6c 6f 67 50 | 74 72 3b 0d 09 70 72 6f | DialogP|tr;..pro|
|00000c00| 63 65 64 75 72 65 20 4f | 75 74 4c 69 6e 65 42 75 |cedure O|utLineBu|
|00000c10| 74 74 6f 6e 20 28 74 68 | 65 50 6f 72 74 3a 20 47 |tton (th|ePort: G|
|00000c20| 72 61 66 50 74 72 3b 20 | 74 68 65 52 65 63 74 3a |rafPtr; |theRect:|
|00000c30| 20 52 65 63 74 29 3b 0d | 09 70 72 6f 63 65 64 75 | Rect);.|.procedu|
|00000c40| 72 65 20 44 69 61 6c 6f | 67 44 65 66 61 75 6c 74 |re Dialo|gDefault|
|00000c50| 20 28 74 68 65 44 69 61 | 6c 6f 67 3a 20 44 69 61 | (theDia|log: Dia|
|00000c60| 6c 6f 67 50 74 72 29 3b | 0d 09 66 75 6e 63 74 69 |logPtr);|..functi|
|00000c70| 6f 6e 20 20 44 69 61 6c | 6f 67 46 69 6c 74 65 72 |on Dial|ogFilter|
|00000c80| 20 28 74 68 65 44 69 61 | 6c 6f 67 3a 20 44 69 61 | (theDia|log: Dia|
|00000c90| 6c 6f 67 50 74 72 3b 20 | 56 41 52 20 74 68 65 45 |logPtr; |VAR theE|
|00000ca0| 76 65 6e 74 3a 20 45 76 | 65 6e 74 52 65 63 6f 72 |vent: Ev|entRecor|
|00000cb0| 64 3b 0d 09 09 09 09 09 | 09 09 09 20 20 20 09 09 |d;......|... ..|
|00000cc0| 09 09 56 41 52 20 74 68 | 65 49 74 65 6d 3a 20 49 |..VAR th|eItem: I|
|00000cd0| 4e 54 45 47 45 52 29 3a | 20 42 4f 4f 4c 45 41 4e |NTEGER):| BOOLEAN|
|00000ce0| 3b 0d 09 70 72 6f 63 65 | 64 75 72 65 20 53 65 74 |;..proce|dure Set|
|00000cf0| 75 70 44 69 61 6c 6f 67 | 20 28 74 68 65 44 69 61 |upDialog| (theDia|
|00000d00| 6c 6f 67 3a 20 44 69 61 | 6c 6f 67 50 74 72 3b 0d |log: Dia|logPtr;.|
|00000d10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d20| 20 20 20 20 20 20 20 09 | 20 42 75 74 74 6f 6e 4b | .| ButtonK|
|00000d30| 65 79 73 2c 20 43 68 65 | 63 6b 42 6f 78 4b 65 79 |eys, Che|ckBoxKey|
|00000d40| 73 2c 20 52 61 64 69 6f | 4b 65 79 73 3a 20 42 4f |s, Radio|Keys: BO|
|00000d50| 4f 4c 45 41 4e 29 3b 0d | 09 70 72 6f 63 65 64 75 |OLEAN);.|.procedu|
|00000d60| 72 65 20 44 69 73 70 6f | 73 53 65 74 55 70 20 28 |re Dispo|sSetUp (|
|00000d70| 74 68 65 44 69 61 6c 6f | 67 3a 20 44 69 61 6c 6f |theDialo|g: Dialo|
|00000d80| 67 50 74 72 29 3b 0d 09 | 66 75 6e 63 74 69 6f 6e |gPtr);..|function|
|00000d90| 20 47 65 74 44 4c 4f 47 | 52 65 66 43 6f 6e 20 28 | GetDLOG|RefCon (|
|00000da0| 74 68 65 44 69 61 6c 6f | 67 3a 20 44 69 61 6c 6f |theDialo|g: Dialo|
|00000db0| 67 50 74 72 29 3a 20 4c | 4f 4e 47 49 4e 54 3b 0d |gPtr): L|ONGINT;.|
|00000dc0| 09 66 75 6e 63 74 69 6f | 6e 20 59 65 73 4e 6f 43 |.functio|n YesNoC|
|00000dd0| 61 6e 63 65 6c 44 4c 4f | 47 20 28 70 61 72 6d 30 |ancelDLO|G (parm0|
|00000de0| 2c 20 70 61 72 6d 31 2c | 20 70 61 72 6d 32 2c 20 |, parm1,| parm2, |
|00000df0| 70 61 72 6d 33 3a 20 73 | 74 72 32 35 35 29 3a 20 |parm3: s|tr255): |
|00000e00| 47 65 6e 65 72 69 63 52 | 65 73 70 6f 6e 73 65 3b |GenericR|esponse;|
|00000e10| 0d 0d 0d 49 6e 73 74 72 | 75 63 74 69 6f 6e 73 3a |...Instr|uctions:|
|00000e20| 3a 3a 0d 0d 43 6f 6e 73 | 74 61 6e 74 73 3a 0d 09 |::..Cons|tants:..|
|00000e30| 54 68 65 20 63 6f 6e 73 | 74 61 6e 74 73 20 63 61 |The cons|tants ca|
|00000e40| 6e 20 62 65 20 75 73 65 | 64 20 61 6e 79 20 77 61 |n be use|d any wa|
|00000e50| 79 20 74 68 61 74 20 74 | 68 65 20 70 72 6f 67 72 |y that t|he progr|
|00000e60| 61 6d 6d 65 72 20 73 65 | 65 73 20 66 69 74 2e 20 |ammer se|es fit. |
|00000e70| 20 48 65 72 65 20 69 73 | 20 61 20 6c 69 73 74 0d | Here is| a list.|
|00000e80| 6f 66 20 73 6f 6d 65 20 | 6f 66 20 74 68 65 20 6d |of some |of the m|
|00000e90| 6f 72 65 20 75 73 65 66 | 75 6c 20 6f 6e 65 73 20 |ore usef|ul ones |
|00000ea0| 66 6f 72 20 4d 61 63 69 | 6e 74 6f 73 68 20 50 72 |for Maci|ntosh Pr|
|00000eb0| 6f 67 72 61 6d 6d 69 6e | 67 2e 0d 0d 44 65 66 61 |ogrammin|g...Defa|
|00000ec0| 75 6c 74 49 74 65 6d 3a | 09 74 68 69 73 20 69 73 |ultItem:|.this is|
|00000ed0| 20 73 69 6d 70 6c 79 20 | 74 68 65 20 6e 75 6d 62 | simply |the numb|
|00000ee0| 65 72 20 6f 6e 65 20 62 | 75 74 20 74 68 61 74 20 |er one b|ut that |
|00000ef0| 69 73 20 61 6c 73 6f 20 | 74 68 65 20 49 74 65 6d |is also |the Item|
|00000f00| 20 74 68 61 74 0d 09 09 | 09 09 09 09 09 6d 6f 64 | that...|.....mod|
|00000f10| 61 6c 44 69 61 6c 6f 67 | 20 72 65 74 75 72 6e 73 |alDialog| returns|
|00000f20| 20 77 68 65 6e 20 74 68 | 65 20 72 65 74 75 72 6e | when th|e return|
|00000f30| 20 6f 72 20 65 6e 74 65 | 72 20 6b 65 79 20 69 73 | or ente|r key is|
|00000f40| 20 68 69 74 2e 20 54 68 | 65 72 65 66 6f 72 65 0d | hit. Th|erefore.|
|00000f50| 09 09 09 09 09 09 09 74 | 68 69 73 20 69 73 20 75 |.......t|his is u|
|00000f60| 73 65 66 75 6c 20 66 6f | 72 20 63 6f 6d 70 61 72 |seful fo|r compar|
|00000f70| 69 73 69 6f 6e 73 20 61 | 66 74 65 72 20 63 61 6c |isions a|fter cal|
|00000f80| 6c 69 6e 67 20 4d 6f 64 | 61 6c 44 69 61 6c 6f 67 |ling Mod|alDialog|
|00000f90| 2e 0d 53 63 72 6f 6c 6c | 42 61 72 53 69 7a 65 3a |..Scroll|BarSize:|
|00000fa0| 09 54 68 69 73 20 63 6f | 6e 73 74 61 6e 74 20 69 |.This co|nstant i|
|00000fb0| 73 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |s the nu|mber of |
|00000fc0| 70 69 78 65 6c 73 20 77 | 69 64 65 20 28 6f 72 20 |pixels w|ide (or |
|00000fd0| 74 61 6c 6c 29 20 6f 66 | 20 61 20 53 63 72 6f 6c |tall) of| a Scrol|
|00000fe0| 6c 42 61 72 0d 57 69 6e | 64 6f 77 5f 54 69 74 6c |lBar.Win|dow_Titl|
|00000ff0| 65 3a 09 54 68 69 73 20 | 69 73 20 74 68 65 20 68 |e:.This |is the h|
|00001000| 65 69 67 68 74 20 28 69 | 6e 20 70 69 78 65 6c 73 |eight (i|n pixels|
|00001010| 29 20 6f 66 20 61 20 73 | 74 61 6e 64 61 72 64 20 |) of a s|tandard |
|00001020| 77 69 6e 64 6f 77 20 74 | 69 74 6c 65 20 62 61 72 |window t|itle bar|
|00001030| 2e 0d 4d 65 6e 75 42 61 | 72 53 69 7a 65 3a 09 54 |..MenuBa|rSize:.T|
|00001040| 68 69 73 20 69 73 20 74 | 68 65 20 68 65 69 67 68 |his is t|he heigh|
|00001050| 74 20 28 69 6e 20 70 69 | 78 65 6c 73 29 20 6f 66 |t (in pi|xels) of|
|00001060| 20 74 68 65 20 73 74 61 | 6e 64 61 72 64 20 4d 65 | the sta|ndard Me|
|00001070| 6e 75 20 42 61 72 2e 0d | 44 65 61 64 43 6f 6e 74 |nu Bar..|DeadCont|
|00001080| 72 6f 6c 3a 09 54 68 69 | 73 20 69 73 20 74 68 65 |rol:.Thi|s is the|
|00001090| 20 76 61 6c 75 65 20 79 | 6f 75 20 70 61 73 73 20 | value y|ou pass |
|000010a0| 74 6f 20 48 69 6c 69 74 | 65 43 6f 6e 74 72 6f 6c |to Hilit|eControl|
|000010b0| 20 74 6f 20 64 69 73 61 | 62 6c 65 20 61 20 63 6f | to disa|ble a co|
|000010c0| 6e 74 72 6f 6c 2e 0d 54 | 45 53 65 6c 53 74 61 72 |ntrol..T|ESelStar|
|000010d0| 74 2c 0d 54 45 53 65 6c | 45 6e 64 3a 09 54 68 69 |t,.TESel|End:.Thi|
|000010e0| 73 20 74 77 6f 20 63 6f | 6e 73 74 61 6e 74 73 20 |s two co|nstants |
|000010f0| 74 6f 67 65 74 68 65 72 | 20 77 69 6c 6c 20 73 65 |together| will se|
|00001100| 6c 65 63 74 20 61 6c 6c | 20 6f 66 20 74 68 65 20 |lect all| of the |
|00001110| 74 65 78 74 20 69 6e 20 | 61 6e 79 20 0d 09 09 09 |text in |any ....|
|00001120| 09 09 54 45 20 45 64 69 | 74 20 72 65 63 6f 72 64 |..TE Edi|t record|
|00001130| 20 77 68 65 6e 20 70 61 | 73 73 65 64 20 69 6e 20 | when pa|ssed in |
|00001140| 74 68 65 20 70 72 6f 70 | 65 72 20 70 61 72 61 6d |the prop|er param|
|00001150| 65 74 65 72 73 2e 0d 59 | 65 73 4e 6f 43 61 6e 63 |eters..Y|esNoCanc|
|00001160| 65 6c 49 44 3a 09 54 68 | 69 73 20 69 73 20 74 68 |elID:.Th|is is th|
|00001170| 65 20 72 65 73 6f 75 72 | 63 65 20 49 44 20 6f 66 |e resour|ce ID of|
|00001180| 20 74 68 65 20 59 65 73 | 2f 4e 6f 2f 43 61 6e 63 | the Yes|/No/Canc|
|00001190| 65 6c 20 44 69 61 6c 6f | 67 20 70 72 6f 76 69 64 |el Dialo|g provid|
|000011a0| 65 64 20 62 79 0d 09 09 | 09 09 09 09 09 09 74 68 |ed by...|......th|
|000011b0| 65 20 55 74 69 6c 69 74 | 79 20 55 6e 69 74 2e 0d |e Utilit|y Unit..|
|000011c0| 0d 53 74 61 6e 64 61 72 | 64 49 6e 69 74 3a 0d 09 |.Standar|dInit:..|
|000011d0| 54 68 69 73 20 70 72 6f | 63 65 64 75 72 65 20 63 |This pro|cedure c|
|000011e0| 61 6c 6c 73 20 41 4c 4c | 20 70 6f 73 73 69 62 6c |alls ALL| possibl|
|000011f0| 65 20 49 6e 69 74 20 70 | 72 6f 63 65 64 75 72 65 |e Init p|rocedure|
|00001200| 73 20 69 6e 20 74 68 65 | 20 4d 61 63 69 6e 74 6f |s in the| Macinto|
|00001210| 73 68 2e 20 20 49 6e 0d | 61 64 64 69 74 69 6f 6e |sh. In.|addition|
|00001220| 20 74 6f 20 63 61 6c 6c | 69 6e 67 20 74 68 65 20 | to call|ing the |
|00001230| 69 6e 69 74 20 72 6f 75 | 74 69 6e 65 73 20 69 74 |init rou|tines it|
|00001240| 20 69 6e 73 74 61 6c 6c | 73 20 61 20 70 72 6f 63 | install|s a proc|
|00001250| 65 64 75 72 65 20 74 68 | 61 74 20 65 6e 61 62 6c |edure th|at enabl|
|00001260| 65 73 20 74 68 65 0d 72 | 65 73 75 6d 65 20 62 75 |es the.r|esume bu|
|00001270| 74 74 6f 6e 20 69 6e 20 | 74 68 65 20 73 79 73 74 |tton in |the syst|
|00001280| 65 6d 20 65 72 72 6f 72 | 20 62 6f 78 20 74 68 61 |em error| box tha|
|00001290| 74 20 77 69 6c 6c 20 74 | 61 6b 65 20 79 6f 75 20 |t will t|ake you |
|000012a0| 62 61 63 6b 20 74 6f 20 | 74 68 65 20 46 69 6e 64 |back to |the Find|
|000012b0| 65 72 2e 0d 4e 4f 54 45 | 3a 09 54 68 69 73 20 69 |er..NOTE|:.This i|
|000012c0| 6e 69 74 20 70 72 6f 63 | 65 64 75 72 65 20 61 73 |nit proc|edure as|
|000012d0| 73 75 6d 65 73 20 79 6f | 75 20 61 72 65 20 72 75 |sumes yo|u are ru|
|000012e0| 6e 6e 69 6e 67 20 75 6e | 64 65 72 20 53 79 73 74 |nning un|der Syst|
|000012f0| 65 6d 20 33 2e 32 20 61 | 6e 64 0d 09 09 09 46 69 |em 3.2 a|nd....Fi|
|00001300| 6e 64 65 72 20 35 2e 33 | 20 6f 72 20 6c 61 74 65 |nder 5.3| or late|
|00001310| 72 0d 0d 47 65 74 45 76 | 65 6e 3a 0d 09 47 69 76 |r..GetEv|en:..Giv|
|00001320| 65 6e 20 61 20 4c 4f 4e | 47 49 4e 54 20 74 68 69 |en a LON|GINT thi|
|00001330| 73 20 66 75 6e 63 74 69 | 6f 6e 20 72 65 74 75 72 |s functi|on retur|
|00001340| 6e 73 20 74 68 65 20 4e | 45 58 54 20 65 76 65 6e |ns the N|EXT even|
|00001350| 20 6e 75 6d 62 65 72 20 | 69 66 20 74 68 65 20 6e | number |if the n|
|00001360| 75 6d 62 65 72 20 69 73 | 0d 4f 44 44 2e 20 20 54 |umber is|.ODD. T|
|00001370| 68 69 73 20 69 73 20 75 | 73 65 66 75 6c 20 66 6f |his is u|seful fo|
|00001380| 72 20 6d 61 63 69 6e 74 | 6f 73 68 20 70 72 6f 67 |r macint|osh prog|
|00001390| 72 61 6d 69 6e 67 20 73 | 69 6e 63 65 20 61 6c 6c |raming s|ince all|
|000013a0| 20 61 64 64 72 65 73 73 | 65 73 20 68 61 76 65 20 | address|es have |
|000013b0| 74 6f 20 62 65 0d 6f 6e | 20 65 76 65 6e 20 77 6f |to be.on| even wo|
|000013c0| 72 64 20 62 6f 75 6e 64 | 72 69 65 73 2e 0d 0d 47 |rd bound|ries...G|
|000013d0| 65 74 52 65 63 74 53 69 | 7a 65 3a 0d 09 47 69 76 |etRectSi|ze:..Giv|
|000013e0| 65 6e 20 61 20 72 65 63 | 74 61 6e 67 6c 65 20 74 |en a rec|tangle t|
|000013f0| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 72 65 74 |his func|tion ret|
|00001400| 75 72 6e 73 20 74 68 65 | 20 77 69 64 74 68 20 61 |urns the| width a|
|00001410| 6e 64 20 68 65 69 67 68 | 74 20 6f 66 20 74 68 65 |nd heigh|t of the|
|00001420| 20 72 65 63 74 61 6e 67 | 6c 65 0d 69 6e 20 61 20 | rectang|le.in a |
|00001430| 50 6f 69 6e 74 2e 20 20 | 57 68 65 72 65 20 50 6f |Point. |Where Po|
|00001440| 69 6e 74 2e 76 20 3d 20 | 68 65 69 67 68 74 20 61 |int.v = |height a|
|00001450| 6e 64 20 50 6f 69 6e 74 | 2e 68 20 3d 20 77 69 64 |nd Point|.h = wid|
|00001460| 74 68 2e 0d 0d 4e 65 77 | 52 6f 6d 73 3a 0d 09 49 |th...New|Roms:..I|
|00001470| 66 20 74 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |f this f|unction |
|00001480| 72 65 74 75 72 6e 73 20 | 74 72 75 65 20 79 6f 75 |returns |true you|
|00001490| 20 61 72 65 20 63 75 72 | 72 65 6e 74 6c 79 20 72 | are cur|rently r|
|000014a0| 75 6e 6e 69 6e 67 20 6f | 6e 20 61 20 6d 61 63 68 |unning o|n a mach|
|000014b0| 69 6e 65 20 74 68 61 74 | 20 68 61 73 0d 74 68 65 |ine that| has.the|
|000014c0| 20 4e 65 77 20 31 32 38 | 4b 20 52 4f 4d 53 20 69 | New 128|K ROMS i|
|000014d0| 6e 73 74 61 6c 6c 65 64 | 2e 0d 0d 48 46 53 52 75 |nstalled|...HFSRu|
|000014e0| 6e 6e 69 6e 67 3a 0d 09 | 49 66 20 74 68 69 73 20 |nning:..|If this |
|000014f0| 66 75 6e 63 74 69 6f 6e | 20 72 65 74 75 72 6e 73 |function| returns|
|00001500| 20 74 72 75 65 20 79 6f | 75 20 61 72 65 20 63 75 | true yo|u are cu|
|00001510| 72 72 65 6e 74 6c 79 20 | 72 75 6e 6e 69 6e 67 20 |rrently |running |
|00001520| 6f 6e 20 61 20 6d 61 63 | 68 69 6e 65 20 74 68 61 |on a mac|hine tha|
|00001530| 74 20 68 61 73 0d 74 68 | 65 20 48 46 53 20 66 69 |t has.th|e HFS fi|
|00001540| 6c 69 6e 67 20 73 79 73 | 74 65 6d 20 63 75 72 72 |ling sys|tem curr|
|00001550| 65 6e 74 6c 79 20 61 63 | 74 69 76 65 2e 0d 4e 4f |ently ac|tive..NO|
|00001560| 54 45 3a 20 54 68 69 73 | 20 64 6f 65 73 6e 27 74 |TE: This| doesn't|
|00001570| 20 6d 65 61 6e 20 79 6f | 75 20 61 6c 73 6f 20 68 | mean yo|u also h|
|00001580| 61 76 65 20 74 68 65 20 | 6e 65 77 20 52 4f 4d 53 |ave the |new ROMS|
|00001590| 20 73 69 6e 63 65 20 48 | 46 53 20 63 61 6e 20 62 | since H|FS can b|
|000015a0| 65 20 6c 6f 61 64 65 64 | 20 69 6e 74 6f 0d 09 09 |e loaded| into...|
|000015b0| 09 52 41 4d 20 61 74 20 | 62 6f 6f 74 20 74 69 6d |.RAM at |boot tim|
|000015c0| 65 2e 0d 0d 4f 70 74 4b | 65 79 44 6f 77 6e 2c 0d |e...OptK|eyDown,.|
|000015d0| 43 61 70 73 4c 6f 63 6b | 44 6f 77 6e 2c 0d 53 68 |CapsLock|Down,.Sh|
|000015e0| 69 66 74 4b 65 79 44 6f | 77 6e 2c 0d 43 6d 64 4b |iftKeyDo|wn,.CmdK|
|000015f0| 65 79 44 6f 77 6e 2c 0d | 57 69 6e 64 6f 77 41 63 |eyDown,.|WindowAc|
|00001600| 74 69 76 61 74 65 3a 0d | 09 47 69 76 65 6e 20 74 |tivate:.|.Given t|
|00001610| 68 65 20 6d 6f 64 69 66 | 69 65 72 73 20 66 69 65 |he modif|iers fie|
|00001620| 6c 64 20 66 72 6f 6d 20 | 61 6e 20 65 76 65 6e 74 |ld from |an event|
|00001630| 52 65 63 6f 72 64 20 74 | 68 69 73 20 72 6f 75 74 |Record t|his rout|
|00001640| 69 6e 65 73 20 72 65 74 | 75 72 6e 20 54 52 55 45 |ines ret|urn TRUE|
|00001650| 20 69 66 0d 74 68 65 20 | 4b 65 79 73 20 74 68 61 | if.the |Keys tha|
|00001660| 74 20 61 72 65 20 61 62 | 72 65 76 69 61 74 65 64 |t are ab|reviated|
|00001670| 20 77 68 65 72 65 20 64 | 6f 77 6e 20 77 68 65 6e | where d|own when|
|00001680| 20 74 68 65 20 65 76 65 | 6e 74 20 77 61 73 20 70 | the eve|nt was p|
|00001690| 6f 73 74 65 64 2e 20 20 | 49 6e 20 74 68 65 20 63 |osted. |In the c|
|000016a0| 61 73 65 0d 6f 66 20 57 | 69 6e 64 6f 77 41 63 74 |ase.of W|indowAct|
|000016b0| 69 76 61 74 65 20 74 68 | 65 20 72 6f 75 74 69 6e |ivate th|e routin|
|000016c0| 65 20 72 65 74 75 72 6e | 73 20 54 52 55 45 20 69 |e return|s TRUE i|
|000016d0| 66 20 74 68 65 20 41 63 | 74 69 76 61 74 65 20 62 |f the Ac|tivate b|
|000016e0| 69 74 20 77 61 73 20 73 | 65 74 20 62 79 20 61 6e |it was s|et by an|
|000016f0| 0d 55 70 64 61 74 65 20 | 65 76 65 6e 74 2e 0d 0d |.Update |event...|
|00001700| 43 65 6e 74 65 72 49 6e | 52 65 63 74 3a 0d 09 47 |CenterIn|Rect:..G|
|00001710| 69 76 65 6e 20 74 77 6f | 20 72 65 63 74 61 6e 67 |iven two| rectang|
|00001720| 6c 65 73 20 61 6e 64 20 | 61 20 76 65 72 74 69 63 |les and |a vertic|
|00001730| 61 6c 20 61 6e 64 20 68 | 6f 72 69 7a 6f 6e 74 61 |al and h|orizonta|
|00001740| 6c 20 6f 66 66 73 65 74 | 2c 20 74 68 69 73 20 72 |l offset|, this r|
|00001750| 6f 75 74 69 6e 65 20 77 | 69 6c 6c 0d 63 65 6e 74 |outine w|ill.cent|
|00001760| 65 72 20 74 68 65 20 66 | 69 72 73 74 20 72 65 63 |er the f|irst rec|
|00001770| 74 61 6e 67 6c 65 20 69 | 6e 20 74 68 65 20 73 65 |tangle i|n the se|
|00001780| 63 6f 6e 64 20 72 65 63 | 74 61 6e 67 6c 65 2c 20 |cond rec|tangle, |
|00001790| 61 6e 64 20 74 68 65 6e | 20 6f 66 66 73 65 74 20 |and then| offset |
|000017a0| 74 68 65 0d 6e 6f 77 20 | 63 65 6e 74 65 72 65 64 |the.now |centered|
|000017b0| 20 66 69 72 73 74 20 72 | 65 63 74 61 6e 67 6c 65 | first r|ectangle|
|000017c0| 20 62 79 20 74 68 65 20 | 72 65 71 75 65 73 74 65 | by the |requeste|
|000017d0| 64 20 61 6d 6f 75 6e 74 | 2e 20 20 54 68 65 20 63 |d amount|. The c|
|000017e0| 65 6e 74 65 72 65 64 20 | 61 6e 64 20 74 68 65 6e |entered |and then|
|000017f0| 0d 6f 66 66 73 65 74 20 | 72 65 63 74 61 6e 67 6c |.offset |rectangl|
|00001800| 65 20 69 73 20 74 68 65 | 6e 20 70 61 73 73 65 64 |e is the|n passed|
|00001810| 20 62 61 63 6b 6f 75 74 | 20 69 6e 20 74 68 65 20 | backout| in the |
|00001820| 66 69 72 73 74 20 70 61 | 72 61 6d 65 74 65 72 2e |first pa|rameter.|
|00001830| 0d 09 54 68 65 20 6f 66 | 66 73 65 74 73 20 63 61 |..The of|fsets ca|
|00001840| 6e 20 62 65 20 65 69 74 | 68 65 72 20 70 6f 73 69 |n be eit|her posi|
|00001850| 74 69 76 65 20 6f 72 20 | 6e 65 67 69 74 69 76 65 |tive or |negitive|
|00001860| 2e 20 20 54 77 6f 20 70 | 6f 73 69 74 69 76 65 20 |. Two p|ositive |
|00001870| 70 61 72 61 6d 65 74 65 | 72 73 0d 69 6e 64 69 63 |paramete|rs.indic|
|00001880| 61 74 65 20 61 6e 20 6f | 66 66 73 65 74 20 64 6f |ate an o|ffset do|
|00001890| 77 6e 20 61 6e 64 20 74 | 6f 20 74 68 65 20 72 69 |wn and t|o the ri|
|000018a0| 67 68 74 2c 20 6e 65 67 | 69 74 69 76 65 20 3d 27 |ght, neg|itive ='|
|000018b0| 73 20 75 70 20 61 6e 64 | 20 74 6f 20 74 68 65 20 |s up and| to the |
|000018c0| 6c 65 66 74 2e 20 54 68 | 69 73 0d 69 73 20 69 6e |left. Th|is.is in|
|000018d0| 20 6b 65 65 70 69 6e 67 | 20 77 69 74 68 20 74 68 | keeping| with th|
|000018e0| 65 20 77 61 79 20 71 75 | 69 63 6b 64 72 61 77 20 |e way qu|ickdraw |
|000018f0| 64 6f 65 73 20 69 74 27 | 73 20 72 65 6c 61 74 69 |does it'|s relati|
|00001900| 76 65 20 6f 66 66 73 65 | 74 73 2e 20 20 49 66 20 |ve offse|ts. If |
|00001910| 6e 6f 20 6f 66 66 73 65 | 74 0d 69 73 20 64 65 73 |no offse|t.is des|
|00001920| 69 72 65 64 20 73 69 6d | 70 6c 79 20 70 61 73 73 |ired sim|ply pass|
|00001930| 20 30 20 61 73 20 74 68 | 65 20 61 72 67 75 6d 65 | 0 as th|e argume|
|00001940| 6e 74 73 2e 0d 4e 4f 54 | 45 3a 20 54 68 69 73 20 |nts..NOT|E: This |
|00001950| 72 6f 75 74 69 6e 65 20 | 77 61 73 20 77 72 69 74 |routine |was writ|
|00001960| 74 65 6e 20 61 73 73 75 | 6d 69 6e 67 20 74 68 61 |ten assu|ming tha|
|00001970| 74 20 74 68 65 20 66 69 | 72 73 74 20 72 65 63 74 |t the fi|rst rect|
|00001980| 61 6e 67 6c 65 20 77 6f | 75 6c 64 20 62 65 20 0d |angle wo|uld be .|
|00001990| 09 09 09 73 6d 61 6c 6c | 65 72 20 74 68 61 6e 20 |...small|er than |
|000019a0| 74 68 65 20 73 65 63 6f | 6e 64 20 72 65 63 74 61 |the seco|nd recta|
|000019b0| 6e 67 6c 65 2e 20 20 54 | 68 65 20 72 65 73 75 6c |ngle. T|he resul|
|000019c0| 74 73 20 77 69 6c 6c 20 | 62 65 20 77 72 6f 6e 67 |ts will |be wrong|
|000019d0| 20 69 66 20 74 68 69 73 | 0d 09 09 09 69 73 20 6e | if this|....is n|
|000019e0| 6f 74 20 74 72 75 65 2e | 0d 0d 43 65 6e 74 65 72 |ot true.|..Center|
|000019f0| 49 6e 53 63 72 65 65 6e | 3a 0d 09 47 69 76 65 6e |InScreen|:..Given|
|00001a00| 20 61 20 72 65 63 74 61 | 6e 67 6c 65 20 61 6e 64 | a recta|ngle and|
|00001a10| 20 61 20 76 65 72 74 69 | 63 61 6c 20 61 6e 64 20 | a verti|cal and |
|00001a20| 68 6f 72 69 7a 6f 6e 74 | 61 6c 20 6f 66 66 73 65 |horizont|al offse|
|00001a30| 74 20 74 68 69 73 20 72 | 6f 75 74 69 6e 65 20 62 |t this r|outine b|
|00001a40| 65 68 61 76 65 73 0d 65 | 78 61 63 74 6c 79 20 6c |ehaves.e|xactly l|
|00001a50| 69 6b 65 20 74 68 65 20 | 6f 6e 65 20 61 62 6f 76 |ike the |one abov|
|00001a60| 65 20 65 78 63 65 70 74 | 20 69 74 20 77 69 6c 6c |e except| it will|
|00001a70| 20 61 75 74 6f 6d 61 74 | 69 63 6c 79 20 63 65 6e | automat|icly cen|
|00001a80| 74 65 72 20 74 68 65 20 | 72 65 63 74 61 6e 67 6c |ter the |rectangl|
|00001a90| 65 20 69 6e 0d 74 68 65 | 20 63 75 72 72 65 6e 74 |e in.the| current|
|00001aa0| 20 73 63 72 65 65 6e 20 | 77 69 74 68 6f 75 74 20 | screen |without |
|00001ab0| 74 68 65 20 4d 65 6e 75 | 42 61 72 2e 20 20 54 68 |the Menu|Bar. Th|
|00001ac0| 65 20 72 65 63 74 61 6e | 67 6c 65 20 77 69 6c 6c |e rectan|gle will|
|00001ad0| 20 6e 6f 74 20 62 65 0d | 63 65 6e 74 65 72 65 64 | not be.|centered|
|00001ae0| 20 69 6e 20 74 68 65 20 | 73 63 72 65 65 6e 2c 20 | in the |screen, |
|00001af0| 62 75 74 20 69 74 20 77 | 69 6c 6c 20 62 65 20 63 |but it w|ill be c|
|00001b00| 65 6e 74 65 72 65 64 20 | 69 6e 20 74 68 65 20 73 |entered |in the s|
|00001b10| 63 72 65 65 6e 20 62 65 | 74 77 65 65 6e 20 74 68 |creen be|tween th|
|00001b20| 65 20 0d 62 6f 74 74 6f | 6d 20 6f 66 20 74 68 65 |e .botto|m of the|
|00001b30| 20 6d 65 6e 75 62 61 72 | 20 74 6f 20 74 68 65 20 | menubar| to the |
|00001b40| 62 6f 74 74 6f 6d 20 6f | 66 20 74 68 65 20 73 63 |bottom o|f the sc|
|00001b50| 72 65 65 6e 2e 20 20 54 | 68 65 20 6e 6f 72 6d 61 |reen. T|he norma|
|00001b60| 6c 20 64 65 73 6b 74 6f | 70 20 72 65 67 69 6f 6e |l deskto|p region|
|00001b70| 0d 74 68 61 74 20 69 73 | 20 74 68 65 20 67 72 61 |.that is| the gra|
|00001b80| 79 20 70 61 74 74 65 72 | 6e 2e 0d 0d 47 65 74 57 |y patter|n...GetW|
|00001b90| 69 6e 64 6f 77 4b 69 6e | 64 3a 0d 09 47 69 76 65 |indowKin|d:..Give|
|00001ba0| 6e 20 61 20 77 69 6e 64 | 6f 77 50 74 72 20 74 68 |n a wind|owPtr th|
|00001bb0| 69 73 20 72 6f 75 74 69 | 6e 65 20 72 65 74 75 72 |is routi|ne retur|
|00001bc0| 6e 73 20 74 68 65 20 77 | 69 6e 64 6f 77 4b 69 6e |ns the w|indowKin|
|00001bd0| 64 20 66 69 65 6c 64 20 | 6f 66 20 74 68 65 20 77 |d field |of the w|
|00001be0| 69 6e 64 6f 77 72 65 63 | 6f 72 64 0d 54 68 69 73 |indowrec|ord.This|
|00001bf0| 20 69 73 20 75 73 65 66 | 75 6c 20 66 6f 72 20 63 | is usef|ul for c|
|00001c00| 68 65 63 6b 69 6e 67 20 | 69 66 20 61 20 77 69 6e |hecking |if a win|
|00001c10| 64 20 69 73 20 61 20 64 | 65 73 6b 61 63 63 65 73 |d is a d|eskacces|
|00001c20| 73 6f 72 79 2e 0d 0d 46 | 72 6f 6e 74 53 79 73 57 |sory...F|rontSysW|
|00001c30| 69 6e 64 6f 77 3a 0d 09 | 54 68 69 73 20 66 75 6e |indow:..|This fun|
|00001c40| 63 74 69 6f 6e 20 72 65 | 74 75 72 6e 73 20 54 52 |ction re|turns TR|
|00001c50| 55 45 20 69 66 20 74 68 | 65 20 66 72 6f 6e 74 6d |UE if th|e frontm|
|00001c60| 6f 73 74 20 77 69 6e 64 | 6f 77 20 69 73 20 61 20 |ost wind|ow is a |
|00001c70| 44 65 73 6b 20 41 63 63 | 65 73 73 6f 72 79 2e 0d |Desk Acc|essory..|
|00001c80| 0d 43 65 6e 74 65 72 4e | 65 77 57 69 6e 64 6f 77 |.CenterN|ewWindow|
|00001c90| 3a 0d 09 54 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |:..This |function|
|00001ca0| 20 69 73 20 65 78 61 63 | 74 6c 79 20 74 68 65 20 | is exac|tly the |
|00001cb0| 73 61 6d 65 20 61 20 47 | 65 74 4e 65 77 57 69 6e |same a G|etNewWin|
|00001cc0| 64 6f 77 2c 20 65 78 63 | 65 70 74 20 69 74 20 61 |dow, exc|ept it a|
|00001cd0| 6c 73 6f 20 63 65 6e 74 | 65 72 73 20 74 68 65 0d |lso cent|ers the.|
|00001ce0| 77 69 6e 64 6f 77 2c 20 | 28 62 79 20 63 61 6c 6c |window, |(by call|
|00001cf0| 69 6e 67 20 43 65 6e 74 | 65 72 49 6e 53 63 72 65 |ing Cent|erInScre|
|00001d00| 65 6e 29 2c 20 61 6e 64 | 20 74 68 65 6e 20 73 68 |en), and| then sh|
|00001d10| 6f 77 73 20 69 74 2e 20 | 20 53 68 6f 77 20 69 66 |ows it. | Show if|
|00001d20| 20 79 6f 75 20 77 69 6e | 64 6f 77 20 74 65 6d 70 | you win|dow temp|
|00001d30| 6c 61 74 65 0d 77 61 73 | 20 69 6e 76 69 73 69 62 |late.was| invisib|
|00001d40| 6c 65 20 74 68 69 73 20 | 72 6f 75 74 69 6e 65 20 |le this |routine |
|00001d50| 77 6f 75 6c 64 20 72 65 | 63 61 6c 6c 20 69 74 20 |would re|call it |
|00001d60| 66 72 6f 6d 20 74 68 65 | 20 72 65 73 6f 75 72 63 |from the| resourc|
|00001d70| 65 20 66 69 6c 65 2c 20 | 63 65 6e 74 65 72 20 69 |e file, |center i|
|00001d80| 74 0d 61 6e 64 20 74 68 | 65 6e 20 73 68 6f 77 20 |t.and th|en show |
|00001d90| 69 74 2e 0d 09 49 20 68 | 61 76 65 20 61 64 64 65 |it...I h|ave adde|
|00001da0| 64 20 74 77 6f 20 61 64 | 64 69 74 69 6f 6e 61 6c |d two ad|ditional|
|00001db0| 20 70 61 72 61 6d 65 74 | 65 72 73 20 74 6f 20 74 | paramet|ers to t|
|00001dc0| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 74 68 61 |his func|tion tha|
|00001dd0| 74 20 61 72 65 20 74 68 | 65 20 76 65 72 74 69 63 |t are th|e vertic|
|00001de0| 61 6c 0d 61 6e 64 20 68 | 6f 72 69 7a 6f 6e 74 61 |al.and h|orizonta|
|00001df0| 6c 20 6f 66 66 73 65 74 | 73 20 66 6f 72 20 61 66 |l offset|s for af|
|00001e00| 74 65 72 20 74 68 65 20 | 77 69 6e 64 6f 77 20 69 |ter the |window i|
|00001e10| 73 20 63 65 6e 74 65 72 | 65 64 2e 0d 4e 4f 54 45 |s center|ed..NOTE|
|00001e20| 3a 09 54 68 69 73 20 72 | 6f 75 74 69 6e 65 20 75 |:.This r|outine u|
|00001e30| 73 65 73 20 74 68 65 20 | 77 69 6e 64 6f 77 27 73 |ses the |window's|
|00001e40| 20 70 6f 72 74 72 65 63 | 74 20 61 73 20 74 68 65 | portrec|t as the|
|00001e50| 20 72 65 63 74 61 6e 67 | 6c 65 20 74 68 61 74 20 | rectang|le that |
|00001e60| 69 73 20 63 65 6e 74 65 | 72 65 64 0d 09 09 09 74 |is cente|red....t|
|00001e70| 68 69 73 20 69 73 20 66 | 69 6e 65 20 66 6f 72 20 |his is f|ine for |
|00001e80| 6d 6f 73 74 20 77 69 6e | 64 6f 77 73 20 62 75 74 |most win|dows but|
|00001e90| 20 6e 6f 74 20 61 20 73 | 74 61 6e 64 61 72 64 20 | not a s|tandard |
|00001ea0| 64 6f 63 75 6d 65 6e 74 | 20 77 69 6e 64 6f 77 2e |document| window.|
|00001eb0| 20 20 54 68 65 0d 09 09 | 09 70 6f 72 74 72 65 63 | The...|.portrec|
|00001ec0| 74 20 6f 66 20 61 20 73 | 74 61 6e 64 61 72 64 20 |t of a s|tandard |
|00001ed0| 64 6f 63 75 6d 65 6e 74 | 20 77 69 6e 64 6f 77 20 |document| window |
|00001ee0| 64 6f 65 73 6e 27 74 20 | 69 6e 63 6c 75 64 65 20 |doesn't |include |
|00001ef0| 74 68 65 20 74 69 74 6c | 65 20 62 61 72 20 73 69 |the titl|e bar si|
|00001f00| 7a 65 0d 09 09 09 61 73 | 20 70 61 72 74 20 6f 66 |ze....as| part of|
|00001f10| 20 74 68 65 20 70 6f 72 | 74 72 65 63 74 2e 20 20 | the por|trect. |
|00001f20| 53 6f 20 65 76 65 6e 20 | 74 68 6f 75 67 68 74 20 |So even |thought |
|00001f30| 74 68 65 20 70 6f 72 74 | 72 65 63 74 20 77 69 6c |the port|rect wil|
|00001f40| 6c 20 62 65 20 63 65 6e | 74 65 72 65 64 0d 09 09 |l be cen|tered...|
|00001f50| 09 74 68 65 20 77 69 6e | 64 6f 77 20 69 74 73 65 |.the win|dow itse|
|00001f60| 6c 66 20 6d 69 67 68 74 | 20 6e 6f 74 20 62 65 2e |lf might| not be.|
|00001f70| 20 20 49 66 20 74 68 69 | 73 20 69 73 20 61 20 70 | If thi|s is a p|
|00001f80| 72 6f 62 6c 65 6d 20 73 | 69 6d 70 6c 79 20 70 61 |roblem s|imply pa|
|00001f90| 73 73 20 74 68 65 0d 09 | 09 09 63 6f 6e 73 74 61 |ss the..|..consta|
|00001fa0| 6e 74 20 57 69 6e 64 6f | 77 5f 54 69 74 6c 65 20 |nt Windo|w_Title |
|00001fb0| 61 73 20 74 68 65 20 76 | 65 72 74 69 63 61 6c 20 |as the v|ertical |
|00001fc0| 6f 66 66 73 65 74 2e 0d | 0d 54 6f 67 67 6c 65 42 |offset..|.ToggleB|
|00001fd0| 75 74 74 6f 6e 3a 0d 09 | 47 69 76 65 6e 20 61 20 |utton:..|Given a |
|00001fe0| 68 61 6e 64 6c 65 20 74 | 6f 20 61 20 63 6f 6e 74 |handle t|o a cont|
|00001ff0| 72 6f 6c 20 74 68 69 73 | 20 72 6f 75 74 69 6e 65 |rol this| routine|
|00002000| 20 74 6f 67 67 6c 65 73 | 20 74 68 65 20 68 69 6c | toggles| the hil|
|00002010| 69 67 68 74 69 6e 67 20 | 62 65 74 77 65 65 6e 20 |ighting |between |
|00002020| 6f 6e 65 20 61 6e 64 0d | 7a 65 72 6f 2e 20 20 49 |one and.|zero. I|
|00002030| 66 20 69 74 27 73 20 6f | 6e 65 20 69 74 20 63 68 |f it's o|ne it ch|
|00002040| 61 6e 67 65 73 20 74 6f | 20 7a 65 72 6f 2c 20 61 |anges to| zero, a|
|00002050| 6e 64 20 69 66 20 69 74 | 20 7a 65 72 6f 20 69 74 |nd if it| zero it|
|00002060| 20 63 68 61 6e 67 65 73 | 20 69 74 20 74 6f 20 6f | changes| it to o|
|00002070| 6e 65 2e 0d 54 68 69 73 | 20 72 6f 75 74 69 6e 65 |ne..This| routine|
|00002080| 20 69 73 20 70 61 72 74 | 69 63 75 6c 61 72 79 20 | is part|iculary |
|00002090| 75 73 65 66 75 6c 20 66 | 6f 72 20 74 75 72 6e 69 |useful f|or turni|
|000020a0| 6e 67 20 72 61 64 69 6f | 20 62 75 74 74 6f 6e 73 |ng radio| buttons|
|000020b0| 20 61 6e 64 20 63 68 65 | 63 6b 62 6f 78 65 73 20 | and che|ckboxes |
|000020c0| 6f 6e 0d 61 6e 64 20 6f | 66 66 2c 20 61 6e 64 20 |on.and o|ff, and |
|000020d0| 6d 61 6b 65 73 20 69 74 | 20 73 6f 20 74 68 65 20 |makes it| so the |
|000020e0| 63 6f 64 65 20 64 6f 65 | 73 6e 27 74 20 68 61 76 |code doe|sn't hav|
|000020f0| 65 20 74 6f 20 6b 65 65 | 70 20 74 72 61 63 6b 20 |e to kee|p track |
|00002100| 6f 66 20 74 68 65 20 62 | 75 74 74 6f 6e 73 0d 68 |of the b|uttons.h|
|00002110| 69 6c 69 74 65 20 73 74 | 61 74 65 2e 20 20 42 65 |ilite st|ate. Be|
|00002120| 63 61 75 73 65 20 69 66 | 20 79 6f 75 20 63 61 6c |cause if| you cal|
|00002130| 6c 20 69 74 20 77 69 6c | 6c 20 74 68 65 20 6c 61 |l it wil|l the la|
|00002140| 73 74 20 63 6f 6e 74 72 | 6f 6c 20 69 74 20 77 69 |st contr|ol it wi|
|00002150| 6c 6c 20 74 75 72 6e 20 | 69 74 0d 6f 66 66 20 61 |ll turn |it.off a|
|00002160| 6e 64 20 74 68 65 6e 20 | 63 61 6c 6c 20 69 74 20 |nd then |call it |
|00002170| 77 69 74 68 20 74 68 65 | 20 6e 65 77 20 63 6f 6e |with the| new con|
|00002180| 74 72 6f 6c 20 61 6e 64 | 20 69 74 20 77 69 6c 6c |trol and| it will|
|00002190| 20 74 68 65 6e 20 74 75 | 72 6e 20 74 68 61 74 20 | then tu|rn that |
|000021a0| 6f 6e 65 20 6f 6e 2e 0d | 41 6c 6c 20 74 68 65 20 |one on..|All the |
|000021b0| 70 72 6f 67 72 61 6d 65 | 72 20 68 61 73 20 74 6f |programe|r has to|
|000021c0| 20 64 6f 20 69 73 20 6b | 65 65 70 20 74 72 61 63 | do is k|eep trac|
|000021d0| 6b 20 6f 66 20 74 68 65 | 20 6c 61 73 74 20 63 6f |k of the| last co|
|000021e0| 6e 74 72 6f 6c 20 68 65 | 20 74 75 72 6e 65 64 20 |ntrol he| turned |
|000021f0| 6f 6e 20 61 6e 64 0d 74 | 68 65 20 6e 65 77 20 63 |on and.t|he new c|
|00002200| 6f 6e 74 72 6f 6c 20 74 | 68 61 74 20 6e 65 65 64 |ontrol t|hat need|
|00002210| 73 20 74 6f 20 62 65 20 | 74 75 72 6e 65 64 20 6f |s to be |turned o|
|00002220| 6e 2e 0d 0d 44 6f 53 46 | 47 65 74 3a 0d 09 47 69 |n...DoSF|Get:..Gi|
|00002230| 76 65 6e 20 61 20 66 69 | 6c 65 20 74 79 70 65 20 |ven a fi|le type |
|00002240| 63 6f 75 6e 74 2c 20 74 | 68 65 20 66 69 6c 65 20 |count, t|he file |
|00002250| 74 79 70 65 20 6c 69 73 | 74 20 61 6e 64 20 61 20 |type lis|t and a |
|00002260| 76 65 72 74 69 63 61 6c | 20 61 6e 64 20 68 6f 72 |vertical| and hor|
|00002270| 7a 6f 6e 74 61 6c 0d 6f | 66 66 73 65 74 2e 20 20 |zontal.o|ffset. |
|00002280| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 61 75 |This fun|ction au|
|00002290| 74 6f 6d 61 74 69 63 6c | 79 20 70 75 74 73 20 75 |tomaticl|y puts u|
|000022a0| 70 20 61 6e 64 20 63 65 | 6e 74 65 72 73 20 74 68 |p and ce|nters th|
|000022b0| 65 20 53 74 61 6e 64 61 | 72 64 20 46 69 6c 65 20 |e Standa|rd File |
|000022c0| 6f 70 65 6e 0d 44 69 61 | 6c 6f 67 20 61 6e 64 20 |open.Dia|log and |
|000022d0| 72 65 74 75 72 6e 73 20 | 61 6e 20 53 46 52 65 70 |returns |an SFRep|
|000022e0| 6c 79 20 74 68 61 74 20 | 69 73 20 74 68 65 20 66 |ly that |is the f|
|000022f0| 69 6c 65 20 63 68 6f 6f | 73 65 6e 20 62 79 20 74 |ile choo|sen by t|
|00002300| 68 65 20 75 73 65 72 2e | 0d 09 46 6f 72 20 6d 6f |he user.|..For mo|
|00002310| 72 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 6f |re infor|mation o|
|00002320| 6e 20 74 68 65 20 66 69 | 6c 65 20 74 79 70 65 20 |n the fi|le type |
|00002330| 63 6f 75 6e 74 20 61 6e | 64 20 74 68 65 20 66 69 |count an|d the fi|
|00002340| 6c 65 20 74 79 70 65 20 | 6c 69 73 74 20 61 6e 64 |le type |list and|
|00002350| 20 74 68 65 0d 53 46 52 | 65 70 6c 79 20 72 65 63 | the.SFR|eply rec|
|00002360| 6f 72 64 20 73 65 65 20 | 69 6e 73 69 64 65 20 6d |ord see |inside m|
|00002370| 61 63 69 6e 74 6f 73 68 | 20 56 6f 6c 2e 20 49 20 |acintosh| Vol. I |
|00002380| 63 68 61 70 74 65 72 20 | 32 30 2e 0d 0d 44 6f 53 |chapter |20...DoS|
|00002390| 46 50 75 74 0d 09 47 69 | 76 65 6e 20 61 20 73 61 |FPut..Gi|ven a sa|
|000023a0| 76 65 20 66 69 6c 65 20 | 70 72 6f 6d 70 74 20 61 |ve file |prompt a|
|000023b0| 6e 64 20 74 68 65 20 6f | 72 69 67 69 6e 61 6c 20 |nd the o|riginal |
|000023c0| 73 74 72 69 6e 67 20 61 | 6e 64 20 61 20 76 65 72 |string a|nd a ver|
|000023d0| 74 69 63 61 6c 20 61 6e | 64 20 68 6f 72 69 7a 6f |tical an|d horizo|
|000023e0| 6e 74 61 6c 0d 6f 66 66 | 73 65 74 2e 20 20 54 68 |ntal.off|set. Th|
|000023f0| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 61 75 74 6f |is funct|ion auto|
|00002400| 6d 61 74 69 63 6c 79 20 | 70 75 74 73 20 75 70 20 |maticly |puts up |
|00002410| 61 6e 64 20 63 65 6e 74 | 65 72 73 20 74 68 65 20 |and cent|ers the |
|00002420| 53 74 61 6e 64 61 72 64 | 20 46 69 6c 65 20 73 61 |Standard| File sa|
|00002430| 76 65 0d 44 69 61 6c 6f | 67 20 61 6e 64 20 72 65 |ve.Dialo|g and re|
|00002440| 74 75 72 6e 73 20 61 6e | 20 53 46 52 65 70 6c 79 |turns an| SFReply|
|00002450| 20 74 68 61 74 20 69 73 | 20 74 68 65 20 73 61 76 | that is| the sav|
|00002460| 65 20 66 69 6c 65 20 63 | 68 6f 6f 73 65 6e 20 62 |e file c|hoosen b|
|00002470| 79 20 74 68 65 20 75 73 | 65 72 2e 0d 09 46 6f 72 |y the us|er...For|
|00002480| 20 6d 6f 72 65 20 69 6e | 66 6f 72 6d 61 74 69 6f | more in|formatio|
|00002490| 6e 20 6f 6e 20 74 68 65 | 53 61 76 65 50 72 6f 6d |n on the|SaveProm|
|000024a0| 70 74 2c 20 4f 72 69 67 | 46 69 6c 65 4e 61 6d 65 |pt, Orig|FileName|
|000024b0| 20 61 6e 64 20 53 46 52 | 65 70 6c 79 20 72 65 63 | and SFR|eply rec|
|000024c0| 6f 72 64 20 73 65 65 0d | 69 6e 73 69 64 65 20 6d |ord see.|inside m|
|000024d0| 61 63 69 6e 74 6f 73 68 | 20 56 6f 6c 2e 20 49 20 |acintosh| Vol. I |
|000024e0| 63 68 61 70 74 65 72 20 | 32 30 2e 0d 0d 43 65 6e |chapter |20...Cen|
|000024f0| 74 65 72 4e 65 77 44 69 | 61 6c 6f 67 3a 0d 09 54 |terNewDi|alog:..T|
|00002500| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 69 73 20 |his func|tion is |
|00002510| 69 64 65 6e 74 69 63 61 | 6c 20 74 6f 20 47 65 74 |identica|l to Get|
|00002520| 4e 65 77 44 69 61 6c 6f | 67 20 61 6e 64 20 69 74 |NewDialo|g and it|
|00002530| 20 62 65 68 61 76 65 73 | 20 65 78 61 63 74 6c 79 | behaves| exactly|
|00002540| 20 6c 69 6b 65 0d 43 65 | 6e 74 65 72 4e 65 77 57 | like.Ce|nterNewW|
|00002550| 69 6e 64 6f 77 2c 20 65 | 78 63 65 70 74 20 74 68 |indow, e|xcept th|
|00002560| 61 74 20 74 68 69 73 20 | 72 6f 75 74 69 6e 65 20 |at this |routine |
|00002570| 69 73 20 66 6f 72 20 44 | 69 61 6c 6f 67 73 2e 20 |is for D|ialogs. |
|00002580| 20 54 68 65 20 70 61 72 | 61 6d 65 74 65 72 73 2c | The par|ameters,|
|00002590| 0d 28 65 78 63 65 70 74 | 20 66 6f 72 20 74 68 65 |.(except| for the|
|000025a0| 20 76 65 72 74 69 63 61 | 6c 20 61 6e 64 20 68 6f | vertica|l and ho|
|000025b0| 72 69 7a 6f 6e 74 61 6c | 20 6f 66 66 73 65 74 73 |rizontal| offsets|
|000025c0| 29 2c 20 61 72 65 20 69 | 64 65 6e 74 69 63 61 6c |), are i|dentical|
|000025d0| 20 74 6f 20 74 68 65 0d | 47 65 74 4e 65 77 44 69 | to the.|GetNewDi|
|000025e0| 61 6c 6f 67 20 70 61 72 | 61 6d 65 74 65 72 73 2e |alog par|ameters.|
|000025f0| 0d 09 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |..This f|unction |
|00002600| 67 65 74 73 20 74 68 65 | 20 64 69 61 6c 6f 67 2c |gets the| dialog,|
|00002610| 20 63 65 6e 74 65 72 73 | 20 69 74 20 69 6e 20 74 | centers| it in t|
|00002620| 68 65 20 63 75 72 72 65 | 6e 74 20 73 63 72 65 65 |he curre|nt scree|
|00002630| 6e 20 61 6e 64 20 74 68 | 65 6e 0d 73 68 6f 77 73 |n and th|en.shows|
|00002640| 20 69 74 20 73 68 6f 77 | 20 69 66 20 79 6f 75 72 | it show| if your|
|00002650| 20 64 69 61 6c 6f 67 20 | 74 65 6d 70 6c 61 74 65 | dialog |template|
|00002660| 20 69 73 20 69 6e 76 69 | 73 69 62 6c 65 20 74 68 | is invi|sible th|
|00002670| 65 20 75 73 65 72 20 77 | 6f 6e 27 74 20 73 65 65 |e user w|on't see|
|00002680| 20 61 6c 6c 20 6f 66 0d | 74 68 65 20 6d 6f 76 65 | all of.|the move|
|00002690| 6d 65 6e 74 20 6f 6e 20 | 74 68 65 20 73 63 72 65 |ment on |the scre|
|000026a0| 65 6e 2e 0d 0d 4f 75 74 | 4c 69 6e 65 42 75 74 74 |en...Out|LineButt|
|000026b0| 6f 6e 3a 0d 09 47 69 76 | 65 6e 20 61 20 47 72 61 |on:..Giv|en a Gra|
|000026c0| 66 50 74 72 20 61 6e 64 | 20 61 20 72 65 63 74 61 |fPtr and| a recta|
|000026d0| 6e 67 6c 65 20 74 68 69 | 73 20 72 6f 75 74 69 6e |ngle thi|s routin|
|000026e0| 65 20 6f 75 74 6c 69 6e | 65 73 2c 20 6f 72 20 62 |e outlin|es, or b|
|000026f0| 6f 6c 64 73 2c 20 74 68 | 65 20 72 65 63 74 61 6e |olds, th|e rectan|
|00002700| 67 6c 65 0d 77 69 74 68 | 20 74 68 65 20 73 74 61 |gle.with| the sta|
|00002710| 6e 64 61 72 64 20 62 6f | 6c 64 20 6f 75 74 6c 69 |ndard bo|ld outli|
|00002720| 6e 65 20 66 6f 72 20 62 | 75 74 74 6f 6e 73 2e 0d |ne for b|uttons..|
|00002730| 0d 44 69 61 6c 6f 67 44 | 65 66 61 75 6c 74 3a 0d |.DialogD|efault:.|
|00002740| 09 47 69 76 65 6e 20 61 | 20 44 69 61 6c 6f 67 50 |.Given a| DialogP|
|00002750| 74 72 20 74 68 69 73 20 | 72 6f 75 74 69 6e 65 20 |tr this |routine |
|00002760| 61 75 74 6f 6d 61 74 69 | 63 6c 79 20 6f 75 74 6c |automati|cly outl|
|00002770| 69 6e 65 73 2c 20 6f 72 | 20 62 6f 6c 64 73 2c 20 |ines, or| bolds, |
|00002780| 74 68 65 20 64 65 66 61 | 75 6c 74 0d 69 74 65 6d |the defa|ult.item|
|00002790| 20 77 69 74 68 20 74 68 | 65 20 73 74 61 6e 64 61 | with th|e standa|
|000027a0| 72 64 20 6d 61 63 69 6e | 74 6f 73 68 20 62 6f 6c |rd macin|tosh bol|
|000027b0| 64 20 6f 75 74 6c 69 6e | 65 2e 0d 0d 44 69 61 6c |d outlin|e...Dial|
|000027c0| 6f 67 46 69 6c 74 65 72 | 3a 0d 09 54 68 69 73 20 |ogFilter|:..This |
|000027d0| 69 73 20 61 20 66 69 6c | 74 65 72 20 70 72 6f 76 |is a fil|ter prov|
|000027e0| 69 64 65 64 20 61 73 20 | 61 20 22 6e 65 77 22 20 |ided as |a "new" |
|000027f0| 73 74 61 6e 64 61 72 64 | 20 66 69 6c 74 65 72 20 |standard| filter |
|00002800| 70 72 6f 63 65 64 75 72 | 65 20 66 6f 72 20 4d 6f |procedur|e for Mo|
|00002810| 64 61 6c 20 44 69 61 6c | 6f 67 73 0d 41 66 74 65 |dal Dial|ogs.Afte|
|00002820| 72 20 74 68 65 20 6e 65 | 63 63 65 73 73 61 72 79 |r the ne|ccessary|
|00002830| 20 73 65 74 75 70 20 70 | 72 6f 63 65 64 75 72 65 | setup p|rocedure|
|00002840| 73 20 68 61 76 65 20 62 | 65 65 6e 20 63 61 6c 6c |s have b|een call|
|00002850| 65 64 2c 20 62 79 20 70 | 61 73 73 69 6e 67 20 61 |ed, by p|assing a|
|00002860| 20 70 72 6f 63 65 64 75 | 72 65 20 70 6f 69 6e 74 | procedu|re point|
|00002870| 65 72 0d 28 74 68 65 44 | 69 61 6c 6f 67 46 69 6c |er.(theD|ialogFil|
|00002880| 74 65 72 29 20 74 6f 20 | 6d 6f 64 61 6c 20 44 69 |ter) to |modal Di|
|00002890| 61 6c 6f 67 20 74 68 69 | 73 20 66 69 6c 74 65 72 |alog thi|s filter|
|000028a0| 20 77 69 6c 6c 20 65 78 | 65 63 75 74 65 2e 0d 09 | will ex|ecute...|
|000028b0| 49 66 20 74 68 65 20 75 | 73 65 72 20 68 69 74 73 |If the u|ser hits|
|000028c0| 20 72 65 74 75 72 6e 20 | 6f 72 20 65 6e 74 65 72 | return |or enter|
|000028d0| 20 74 68 65 20 64 65 66 | 61 75 6c 74 20 49 74 65 | the def|ault Ite|
|000028e0| 6d 20 69 73 20 72 65 74 | 75 72 6e 65 64 20 61 73 |m is ret|urned as|
|000028f0| 20 68 69 74 2c 20 74 68 | 69 73 0d 69 73 20 6e 6f | hit, th|is.is no|
|00002900| 20 64 69 66 66 65 72 65 | 6e 74 20 74 68 61 6e 20 | differe|nt than |
|00002910| 74 68 65 20 73 74 61 6e | 64 61 72 64 20 6d 61 63 |the stan|dard mac|
|00002920| 69 6e 74 6f 73 68 20 64 | 69 61 6c 6f 67 20 66 69 |intosh d|ialog fi|
|00002930| 6c 74 65 72 2e 0d 09 49 | 66 20 74 68 65 20 75 73 |lter...I|f the us|
|00002940| 65 72 20 64 6f 75 62 6c | 65 20 63 6c 69 63 6b 73 |er doubl|e clicks|
|00002950| 20 6f 6e 20 61 20 72 61 | 64 69 6f 20 62 75 74 74 | on a ra|dio butt|
|00002960| 6f 6e 20 74 68 65 20 66 | 69 6c 74 65 72 20 66 69 |on the f|ilter fi|
|00002970| 72 73 74 20 72 65 74 75 | 72 6e 73 20 74 68 65 0d |rst retu|rns the.|
|00002980| 72 61 64 69 6f 20 62 75 | 74 74 6f 6e 20 69 74 65 |radio bu|tton ite|
|00002990| 6d 20 6e 75 6d 62 65 72 | 20 61 6e 64 20 74 68 65 |m number| and the|
|000029a0| 6e 20 72 65 74 75 72 6e | 73 20 74 68 65 20 64 65 |n return|s the de|
|000029b0| 66 61 75 6c 74 20 69 74 | 65 6d 20 61 73 20 68 69 |fault it|em as hi|
|000029c0| 74 20 69 66 20 74 68 65 | 20 73 65 63 6f 6e 64 0d |t if the| second.|
|000029d0| 63 6c 69 63 6b 20 77 61 | 73 20 69 6e 20 74 68 65 |click wa|s in the|
|000029e0| 20 64 6f 75 62 6c 65 20 | 63 6c 69 63 6b 20 74 69 | double |click ti|
|000029f0| 6d 65 20 70 65 72 69 6f | 64 20 61 6e 64 20 74 68 |me perio|d and th|
|00002a00| 65 20 63 6c 69 63 6b 20 | 6f 63 63 75 72 65 64 20 |e click |occured |
|00002a10| 6f 6e 20 74 68 65 20 73 | 61 6d 65 20 69 74 65 6d |on the s|ame item|
|00002a20| 2e 0d 54 68 69 73 20 69 | 73 20 75 73 65 66 75 6c |..This i|s useful|
|00002a30| 20 73 6f 20 74 68 65 20 | 75 73 65 20 63 61 6e 20 | so the |use can |
|00002a40| 64 6f 75 62 6c 65 20 63 | 6c 69 63 6b 20 6f 6e 20 |double c|lick on |
|00002a50| 61 20 72 61 64 69 6f 20 | 62 75 74 74 6f 6e 20 61 |a radio |button a|
|00002a60| 6e 64 20 64 69 73 6d 69 | 73 73 20 74 68 65 0d 44 |nd dismi|ss the.D|
|00002a70| 69 61 6c 6f 67 20 69 6e | 20 6f 6e 65 20 73 69 6d |ialog in| one sim|
|00002a80| 70 6c 65 20 64 6f 75 62 | 6c 65 20 63 6c 69 63 6b |ple doub|le click|
|00002a90| 2e 0d 09 49 74 20 61 6c | 73 6f 20 6d 6f 6e 74 69 |...It al|so monti|
|00002aa0| 6f 72 73 20 63 6f 6d 6d | 61 6e 64 2d 6b 65 79 20 |ors comm|and-key |
|00002ab0| 65 76 65 6e 74 73 20 61 | 6e 64 20 6d 61 70 73 20 |events a|nd maps |
|00002ac0| 74 68 65 6d 20 6f 6e 74 | 6f 20 74 68 65 20 74 68 |them ont|o the th|
|00002ad0| 65 20 61 70 70 72 6f 70 | 72 69 61 74 65 0d 49 74 |e approp|riate.It|
|00002ae0| 65 6d 20 6e 75 6d 62 65 | 72 73 2e 20 20 59 6f 75 |em numbe|rs. You|
|00002af0| 20 63 61 6e 20 68 61 76 | 65 20 63 6f 6d 6d 61 6e | can hav|e comman|
|00002b00| 64 20 6b 65 79 20 65 71 | 75 69 76 69 6c 61 6e 74 |d key eq|uivilant|
|00002b10| 73 20 66 6f 72 20 62 75 | 74 74 6f 6e 73 2c 20 63 |s for bu|ttons, c|
|00002b20| 68 65 63 6b 20 62 6f 78 | 65 73 2c 0d 61 6e 64 20 |heck box|es,.and |
|00002b30| 72 61 64 69 6f 20 62 75 | 74 74 6f 6e 73 2e 20 20 |radio bu|ttons. |
|00002b40| 54 68 65 20 66 69 72 73 | 74 20 63 68 61 72 61 63 |The firs|t charac|
|00002b50| 74 65 72 20 69 6e 20 74 | 68 65 20 62 75 74 74 6f |ter in t|he butto|
|00002b60| 6e 73 20 54 69 74 6c 65 | 20 64 65 74 65 72 6d 69 |ns Title| determi|
|00002b70| 6e 65 73 20 69 74 27 73 | 0d 6b 65 79 62 6f 61 72 |nes it's|.keyboar|
|00002b80| 64 20 65 71 75 69 76 69 | 6c 61 6e 74 2e 20 20 49 |d equivi|lant. I|
|00002b90| 66 20 74 68 65 20 62 75 | 74 74 6f 6e 73 20 74 69 |f the bu|ttons ti|
|00002ba0| 74 6c 65 20 77 61 73 20 | 22 52 65 64 22 20 74 68 |tle was |"Red" th|
|00002bb0| 65 20 63 6f 6d 6d 61 6e | 64 2d 52 20 77 6f 75 6c |e comman|d-R woul|
|00002bc0| 64 20 63 61 75 73 65 0d | 74 68 65 20 66 69 6c 74 |d cause.|the filt|
|00002bd0| 65 72 20 70 72 6f 63 65 | 64 75 72 65 20 74 6f 20 |er proce|dure to |
|00002be0| 72 65 74 75 72 6e 20 61 | 73 20 74 68 6f 75 67 68 |return a|s though|
|00002bf0| 20 74 68 65 20 6d 6f 75 | 73 65 20 77 61 73 20 63 | the mou|se was c|
|00002c00| 6c 69 63 6b 65 64 20 6f | 6e 20 74 68 65 20 62 75 |licked o|n the bu|
|00002c10| 74 74 6f 6e 0d 72 65 64 | 2e 0d 4e 4f 54 45 53 3a |tton.red|..NOTES:|
|00002c20| 0d 09 31 29 09 54 68 69 | 73 20 72 6f 75 74 69 6e |..1).Thi|s routin|
|00002c30| 65 20 75 73 65 73 20 73 | 6f 6d 65 20 6e 65 77 20 |e uses s|ome new |
|00002c40| 52 4f 4d 20 63 61 6c 6c | 73 20 61 6e 64 20 77 69 |ROM call|s and wi|
|00002c50| 6c 6c 20 63 72 61 73 68 | 20 69 66 20 65 78 65 63 |ll crash| if exec|
|00002c60| 75 74 65 64 20 6f 6e 20 | 61 6e 20 6f 6c 64 0d 09 |uted on |an old..|
|00002c70| 09 09 6d 61 63 68 69 6e | 65 2e 20 20 42 75 74 20 |..machin|e. But |
|00002c80| 74 68 65 20 46 69 6c 74 | 65 72 20 63 68 65 63 6b |the Filt|er check|
|00002c90| 73 20 74 6f 20 73 65 65 | 20 69 66 20 69 74 20 69 |s to see| if it i|
|00002ca0| 73 20 6f 6e 20 61 6e 20 | 6f 6c 64 20 6d 61 63 68 |s on an |old mach|
|00002cb0| 69 6e 65 20 61 6e 64 0d | 09 09 09 64 69 73 61 62 |ine and.|...disab|
|00002cc0| 6c 65 73 20 69 74 73 65 | 6c 66 20 63 61 6c 6c 69 |les itse|lf calli|
|00002cd0| 6e 67 20 74 68 65 20 73 | 74 61 6e 64 61 72 64 20 |ng the s|tandard |
|00002ce0| 4d 6f 64 61 6c 44 69 61 | 6c 6f 67 20 66 69 6c 74 |ModalDia|log filt|
|00002cf0| 65 72 20 70 72 6f 63 65 | 64 75 72 65 20 69 66 20 |er proce|dure if |
|00002d00| 69 74 0d 09 09 09 69 73 | 20 72 75 6e 6e 69 6e 67 |it....is| running|
|00002d10| 20 6f 6e 20 61 6e 20 6f | 6c 64 20 6d 61 63 68 69 | on an o|ld machi|
|00002d20| 6e 65 2e 0d 09 32 29 09 | 54 68 65 20 63 61 6c 6c |ne...2).|The call|
|00002d30| 20 74 6f 20 75 73 65 20 | 74 68 69 73 20 66 69 6c | to use |this fil|
|00002d40| 74 65 72 20 67 6f 65 73 | 20 73 6f 6d 65 74 68 69 |ter goes| somethi|
|00002d50| 6e 67 20 6c 69 6b 65 20 | 74 68 69 73 0d 0d 09 09 |ng like |this....|
|00002d60| 09 09 74 68 65 44 69 61 | 6c 6f 67 20 3a 3d 20 47 |..theDia|log := G|
|00002d70| 65 74 4e 65 77 44 69 61 | 6c 6f 67 28 2e 2e 2e 29 |etNewDia|log(...)|
|00002d80| 3b 0d 09 09 09 09 53 65 | 74 55 70 44 69 61 6c 6f |;.....Se|tUpDialo|
|00002d90| 67 28 74 68 65 44 69 61 | 6c 6f 67 2c 20 54 52 55 |g(theDia|log, TRU|
|00002da0| 45 2c 20 54 52 55 45 2c | 20 54 52 55 45 29 3b 20 |E, TRUE,| TRUE); |
|00002db0| 20 7b 6d 6f 72 65 20 6f | 6e 20 74 68 69 73 20 6c | {more o|n this l|
|00002dc0| 61 74 65 72 7d 0d 0d 09 | 09 09 09 77 68 69 6c 65 |ater}...|...while|
|00002dd0| 20 73 6f 6d 65 63 6f 6e | 64 69 74 69 6f 6e 0d 09 | somecon|dition..|
|00002de0| 09 09 09 09 4d 6f 64 61 | 6c 44 69 61 6c 6f 67 28 |....Moda|lDialog(|
|00002df0| 74 68 65 44 69 61 6c 6f | 67 46 69 6c 74 65 72 2c |theDialo|gFilter,|
|00002e00| 20 49 74 65 6d 48 49 54 | 29 3b 0d 09 09 09 09 09 | ItemHIT|);......|
|00002e10| 2e 2e 2e 2e 0d 09 09 09 | 09 09 2e 2e 2e 2e 0d 09 |........|........|
|00002e20| 09 09 09 09 2e 2e 2e 2e | 0d 09 09 09 09 65 6e 64 |........|.....end|
|00002e30| 3b 09 7b 77 68 69 6c 65 | 20 73 6f 6d 65 63 6f 6e |;.{while| somecon|
|00002e40| 64 69 74 69 6f 6e 7d 0d | 0d 09 09 09 09 44 69 73 |dition}.|.....Dis|
|00002e50| 70 6f 73 53 65 74 55 70 | 28 74 68 65 44 69 61 6c |posSetUp|(theDial|
|00002e60| 6f 67 29 3b 0d 09 09 09 | 09 44 69 73 70 6f 73 44 |og);....|.DisposD|
|00002e70| 69 61 6c 6f 67 28 74 68 | 65 44 69 61 6c 6f 67 29 |ialog(th|eDialog)|
|00002e80| 3b 0d 0d 09 09 09 4e 6f | 74 69 63 65 20 74 68 65 |;.....No|tice the|
|00002e90| 20 67 6c 6f 62 61 6c 20 | 76 61 72 69 61 62 6c 65 | global |variable|
|00002ea0| 20 74 68 65 44 69 61 6c | 6f 67 46 69 6c 74 65 72 | theDial|ogFilter|
|00002eb0| 20 69 73 20 75 73 65 64 | 2e 20 20 50 6c 65 61 73 | is used|. Pleas|
|00002ec0| 65 20 64 6f 6e 27 74 20 | 73 65 74 0d 09 09 09 74 |e don't |set....t|
|00002ed0| 68 69 73 20 76 61 6c 75 | 65 20 79 6f 75 72 73 65 |his valu|e yourse|
|00002ee0| 6c 66 2c 20 69 74 20 69 | 73 20 73 65 74 20 66 6f |lf, it i|s set fo|
|00002ef0| 72 20 79 6f 75 20 65 76 | 65 72 79 20 74 69 6d 65 |r you ev|ery time|
|00002f00| 20 53 65 74 75 70 44 69 | 61 6c 6f 67 20 69 73 20 | SetupDi|alog is |
|00002f10| 63 61 6c 6c 65 64 0d 09 | 09 09 61 6e 64 20 69 73 |called..|..and is|
|00002f20| 20 73 65 74 20 70 72 6f | 70 65 72 6c 79 20 64 65 | set pro|perly de|
|00002f30| 70 65 6e 64 69 6e 67 20 | 6f 6e 20 69 66 20 74 68 |pending |on if th|
|00002f40| 65 20 6e 65 77 20 52 4f | 4d 53 20 61 72 65 20 70 |e new RO|MS are p|
|00002f50| 72 65 73 65 6e 74 2e 0d | 0d 09 09 09 54 68 69 73 |resent..|....This|
|00002f60| 20 63 61 6c 6c 20 77 69 | 6c 6c 20 77 6f 72 6b 20 | call wi|ll work |
|00002f70| 6f 6e 20 61 6c 6c 20 6d | 61 63 69 6e 74 6f 73 68 |on all m|acintosh|
|00002f80| 27 73 2c 20 62 75 74 20 | 6f 6e 20 74 68 65 20 6f |'s, but |on the o|
|00002f90| 6c 64 65 72 20 6f 6e 65 | 20 74 68 65 20 66 65 61 |lder one| the fea|
|00002fa0| 74 75 72 65 73 0d 09 09 | 09 6f 66 20 74 68 69 73 |tures...|.of this|
|00002fb0| 20 66 69 6c 74 65 72 20 | 61 72 65 20 73 69 6d 70 | filter |are simp|
|00002fc0| 6c 79 20 64 69 73 61 62 | 6c 65 64 2e 0d 0d 09 09 |ly disab|led.....|
|00002fd0| 09 4e 6f 74 69 63 65 20 | 74 68 65 20 53 65 74 55 |.Notice |the SetU|
|00002fe0| 70 44 69 61 6c 6f 67 20 | 61 6e 64 20 44 69 73 70 |pDialog |and Disp|
|00002ff0| 6f 53 65 74 55 70 20 63 | 61 6c 6c 2c 20 74 68 65 |oSetUp c|all, the|
|00003000| 73 65 20 63 61 6c 6c 73 | 20 61 72 65 20 6e 65 63 |se calls| are nec|
|00003010| 65 73 73 61 72 79 20 74 | 6f 0d 09 09 09 73 65 74 |essary t|o....set|
|00003020| 75 70 20 73 6f 6d 65 20 | 64 61 74 61 20 73 74 72 |up some |data str|
|00003030| 75 63 74 75 72 65 73 20 | 66 6f 72 20 74 68 65 20 |uctures |for the |
|00003040| 66 69 6c 74 65 72 20 74 | 6f 20 75 73 65 2e 20 20 |filter t|o use. |
|00003050| 44 69 73 70 6f 73 53 65 | 74 75 70 20 73 69 6d 70 |DisposSe|tup simp|
|00003060| 6c 79 0d 09 09 09 72 65 | 6d 6f 76 65 73 20 74 68 |ly....re|moves th|
|00003070| 65 20 74 65 6d 70 6f 72 | 61 72 79 20 64 61 74 61 |e tempor|ary data|
|00003080| 20 73 74 72 75 63 74 75 | 72 65 73 20 63 72 65 61 | structu|res crea|
|00003090| 74 65 64 20 62 79 20 53 | 65 74 75 70 44 69 61 6c |ted by S|etupDial|
|000030a0| 6f 67 2e 0d 0d 53 65 74 | 55 70 44 69 61 6c 6f 67 |og...Set|UpDialog|
|000030b0| 3a 0d 09 43 61 6c 6c 20 | 74 68 69 73 20 70 72 6f |:..Call |this pro|
|000030c0| 63 65 64 75 72 65 20 62 | 65 66 6f 72 65 20 63 61 |cedure b|efore ca|
|000030d0| 6c 6c 69 6e 67 20 6d 6f | 64 61 6c 20 64 69 61 6c |lling mo|dal dial|
|000030e0| 6f 67 20 77 69 74 68 20 | 6d 79 46 69 6c 74 65 72 |og with |myFilter|
|000030f0| 2e 20 20 54 68 65 20 66 | 6f 75 72 0d 70 61 72 61 |. The f|our.para|
|00003100| 6d 65 74 65 72 73 20 61 | 72 65 20 61 73 20 66 6f |meters a|re as fo|
|00003110| 6c 6c 6f 77 73 2c 20 74 | 68 65 20 44 69 61 6c 6f |llows, t|he Dialo|
|00003120| 67 50 74 72 20 74 68 61 | 74 20 69 73 20 74 68 65 |gPtr tha|t is the|
|00003130| 20 64 69 61 6c 6f 67 20 | 74 6f 20 62 65 20 73 65 | dialog |to be se|
|00003140| 74 75 70 20 61 6e 64 0d | 74 68 65 20 62 6f 6f 6c |tup and.|the bool|
|00003150| 65 61 6e 73 20 69 6e 64 | 69 63 61 74 69 6e 67 20 |eans ind|icating |
|00003160| 74 68 65 20 74 79 70 65 | 20 6f 66 20 62 75 74 74 |the type| of butt|
|00003170| 6f 6e 73 20 74 6f 20 68 | 61 76 65 20 6b 65 79 62 |ons to h|ave keyb|
|00003180| 6f 61 72 64 20 65 71 75 | 69 76 69 6c 61 6e 74 73 |oard equ|ivilants|
|00003190| 20 0d 61 73 73 69 67 6e | 65 64 20 74 6f 20 74 68 | .assign|ed to th|
|000031a0| 65 6d 2e 20 20 42 79 20 | 70 61 73 73 69 6e 67 20 |em. By |passing |
|000031b0| 74 72 75 65 20 74 6f 20 | 74 68 65 73 65 20 70 61 |true to |these pa|
|000031c0| 72 61 6d 65 74 65 72 73 | 20 74 65 6c 6c 73 20 74 |rameters| tells t|
|000031d0| 68 65 20 73 65 74 75 70 | 20 74 6f 20 0d 61 73 73 |he setup| to .ass|
|000031e0| 69 67 6e 20 61 20 6b 65 | 79 62 6f 61 72 64 20 65 |ign a ke|yboard e|
|000031f0| 71 75 69 76 69 6c 61 6e | 74 20 74 6f 20 74 68 61 |quivilan|t to tha|
|00003200| 74 20 74 79 70 65 20 6f | 66 20 62 75 74 74 6f 6e |t type o|f button|
|00003210| 2c 20 66 61 6c 73 65 20 | 74 65 6c 6c 73 20 74 68 |, false |tells th|
|00003220| 65 20 70 72 6f 63 65 64 | 75 72 65 0d 74 6f 20 69 |e proced|ure.to i|
|00003230| 67 6e 6f 72 65 20 74 68 | 61 74 20 74 79 70 65 20 |gnore th|at type |
|00003240| 6f 66 20 62 75 74 74 6f | 6e 20 77 68 65 6e 20 73 |of butto|n when s|
|00003250| 65 74 74 69 6e 67 20 75 | 70 20 74 68 65 20 6b 65 |etting u|p the ke|
|00003260| 79 62 6f 61 72 64 20 6d | 61 70 2e 0d 09 49 6e 20 |yboard m|ap...In |
|00003270| 74 68 65 20 65 76 65 6e | 74 20 74 68 61 74 20 74 |the even|t that t|
|00003280| 77 6f 2c 20 6f 72 20 6d | 6f 72 65 2c 20 62 75 74 |wo, or m|ore, but|
|00003290| 74 6f 6e 73 20 68 61 76 | 65 20 74 68 65 20 73 61 |tons hav|e the sa|
|000032a0| 6d 65 20 66 69 72 73 74 | 20 63 68 61 72 61 63 74 |me first| charact|
|000032b0| 65 72 20 69 6e 0d 74 68 | 65 69 72 20 74 69 74 6c |er in.th|eir titl|
|000032c0| 65 73 20 6f 6e 6c 79 20 | 74 68 65 20 66 69 72 73 |es only |the firs|
|000032d0| 74 20 6f 63 63 75 72 65 | 6e 63 65 20 69 73 20 75 |t occure|nce is u|
|000032e0| 73 65 64 20 61 6e 64 20 | 61 6c 6c 20 6f 74 68 65 |sed and |all othe|
|000032f0| 72 73 20 61 72 65 20 69 | 67 6e 6f 72 65 64 2e 0d |rs are i|gnored..|
|00003300| 0d 44 69 73 70 6f 73 53 | 65 74 55 70 3a 0d 09 43 |.DisposS|etUp:..C|
|00003310| 61 6c 6c 20 74 68 69 73 | 20 72 6f 75 74 69 6e 65 |all this| routine|
|00003320| 20 77 68 65 6e 20 79 6f | 75 20 61 72 65 20 64 6f | when yo|u are do|
|00003330| 6e 65 20 77 69 74 68 20 | 74 68 65 44 69 61 6c 6f |ne with |theDialo|
|00003340| 67 20 61 6e 64 20 77 61 | 6e 74 20 74 6f 20 66 72 |g and wa|nt to fr|
|00003350| 65 65 20 75 70 20 74 68 | 65 0d 6d 65 6d 6f 72 79 |ee up th|e.memory|
|00003360| 20 61 6c 6c 6f 63 61 74 | 65 64 20 62 79 20 53 65 | allocat|ed by Se|
|00003370| 74 75 70 44 69 61 6c 6f | 67 2e 0d 0d 47 65 74 44 |tupDialo|g...GetD|
|00003380| 4c 4f 47 52 65 66 43 6f | 6e 3a 0d 09 49 20 75 73 |LOGRefCo|n:..I us|
|00003390| 65 20 74 68 65 20 72 65 | 66 43 6f 6e 20 74 6f 20 |e the re|fCon to |
|000033a0| 68 6f 6c 64 20 74 68 65 | 20 68 61 6e 64 6c 65 20 |hold the| handle |
|000033b0| 70 6f 69 6e 74 69 6e 67 | 20 74 6f 20 6d 79 20 64 |pointing| to my d|
|000033c0| 61 74 61 20 73 74 72 75 | 63 74 75 72 65 73 20 73 |ata stru|ctures s|
|000033d0| 6f 20 61 66 74 65 72 0d | 63 61 6c 6c 69 6e 67 20 |o after.|calling |
|000033e0| 53 65 74 55 70 44 69 61 | 6c 6f 67 2c 20 79 6f 75 |SetUpDia|log, you|
|000033f0| 20 6d 75 73 74 20 79 6f | 75 20 74 68 69 73 20 63 | must yo|u this c|
|00003400| 61 6c 6c 20 74 6f 20 72 | 65 74 72 65 69 76 65 20 |all to r|etreive |
|00003410| 79 6f 75 20 52 65 66 43 | 6f 6e 20 74 68 61 74 20 |you RefC|on that |
|00003420| 79 6f 75 0d 73 74 6f 72 | 65 64 20 69 6e 20 74 68 |you.stor|ed in th|
|00003430| 65 20 44 69 61 6c 6f 67 | 2e 20 20 41 66 74 65 72 |e Dialog|. After|
|00003440| 20 63 61 6c 6c 69 6e 67 | 20 64 69 73 70 6f 73 53 | calling| disposS|
|00003450| 65 74 75 70 20 74 68 65 | 20 52 65 66 43 6f 6e 20 |etup the| RefCon |
|00003460| 69 73 20 72 65 73 74 6f | 72 65 64 20 61 6e 64 0d |is resto|red and.|
|00003470| 79 6f 75 20 63 61 6e 20 | 75 73 65 20 74 68 65 20 |you can |use the |
|00003480| 6e 6f 72 6d 61 6c 20 74 | 6f 6f 6c 20 62 6f 78 20 |normal t|ool box |
|00003490| 63 61 6c 6c 73 20 74 6f | 20 67 65 74 20 61 74 20 |calls to| get at |
|000034a0| 69 74 2e 0d 0d 59 65 73 | 4e 6f 43 61 6e 63 65 6c |it...Yes|NoCancel|
|000034b0| 44 4c 4f 47 3a 0d 09 54 | 68 69 73 20 64 69 73 70 |DLOG:..T|his disp|
|000034c0| 6c 61 79 73 20 74 68 65 | 20 73 74 61 6e 64 61 72 |lays the| standar|
|000034d0| 64 20 59 45 53 2f 4e 4f | 2f 43 61 6e 63 65 6c 20 |d YES/NO|/Cancel |
|000034e0| 44 4c 4f 47 20 61 73 20 | 6f 75 74 6c 69 6e 65 64 |DLOG as |outlined|
|000034f0| 20 62 79 20 49 6e 73 69 | 64 65 20 4d 61 63 69 6e | by Insi|de Macin|
|00003500| 74 6f 73 68 0d 56 6f 6c | 75 6d 65 20 49 56 20 66 |tosh.Vol|ume IV f|
|00003510| 6f 72 20 75 73 65 20 77 | 68 65 6e 20 61 73 6b 69 |or use w|hen aski|
|00003520| 6e 67 20 74 68 65 20 75 | 73 65 72 20 61 20 71 75 |ng the u|ser a qu|
|00003530| 65 73 74 69 6f 6e 20 73 | 75 63 68 20 61 73 0d 22 |estion s|uch as."|
|00003540| 53 61 76 65 20 43 68 61 | 6e 67 65 73 20 42 65 66 |Save Cha|nges Bef|
|00003550| 6f 72 65 20 51 75 69 74 | 74 69 6e 67 22 2e 20 20 |ore Quit|ting". |
|00003560| 49 74 20 74 61 6b 65 73 | 20 66 6f 75 72 20 70 61 |It takes| four pa|
|00003570| 72 61 6d 65 74 65 72 73 | 20 77 68 69 63 68 20 64 |rameters| which d|
|00003580| 65 74 65 72 6d 69 6e 65 | 20 74 68 65 0d 6d 65 73 |etermine| the.mes|
|00003590| 73 61 67 65 20 74 68 61 | 74 20 69 73 20 64 69 73 |sage tha|t is dis|
|000035a0| 70 6c 61 79 65 64 20 74 | 6f 20 74 68 65 20 75 73 |played t|o the us|
|000035b0| 65 72 20 61 6e 64 20 72 | 65 74 75 72 6e 73 20 61 |er and r|eturns a|
|000035c0| 6e 64 20 76 61 6c 75 65 | 20 6f 66 20 74 79 70 65 |nd value| of type|
|000035d0| 20 47 65 6e 65 72 69 63 | 52 65 73 70 6f 6e 73 65 | Generic|Response|
|000035e0| 0d 77 68 69 63 68 20 79 | 6f 75 20 70 72 6f 67 72 |.which y|ou progr|
|000035f0| 61 6d 20 63 61 6e 20 74 | 68 65 6e 20 72 65 73 70 |am can t|hen resp|
|00003600| 6f 6e 64 20 74 6f 2e 0d | 09 49 74 20 61 75 74 6f |ond to..|.It auto|
|00003610| 6d 61 74 69 63 6c 79 20 | 63 65 6e 74 65 72 73 20 |maticly |centers |
|00003620| 74 68 65 20 64 69 61 6c | 6f 67 2c 20 6f 75 74 6c |the dial|og, outl|
|00003630| 69 6e 65 73 20 74 68 65 | 20 64 65 66 61 75 6c 74 |ines the| default|
|00003640| 20 72 65 73 70 6f 6e 73 | 65 2c 20 61 6e 64 20 75 | respons|e, and u|
|00003650| 73 65 73 0d 6d 79 20 66 | 69 6c 74 65 72 20 66 6f |ses.my f|ilter fo|
|00003660| 72 20 4d 6f 64 61 6c 44 | 69 61 6c 6f 67 20 77 69 |r ModalD|ialog wi|
|00003670| 74 68 20 6b 65 79 62 6f | 61 72 64 20 65 71 75 69 |th keybo|ard equi|
|00003680| 76 69 6c 61 6e 74 73 20 | 66 6f 72 20 65 61 63 68 |vilants |for each|
|00003690| 20 6f 66 20 74 68 65 20 | 74 68 72 65 65 20 0d 62 | of the |three .b|
|000036a0| 75 74 74 6f 6e 73 2e 20 | 20 41 20 73 61 6d 70 6c |uttons. | A sampl|
|000036b0| 65 20 63 61 6c 6c 20 6d | 69 67 68 74 20 62 65 20 |e call m|ight be |
|000036c0| 61 73 20 66 6f 6c 6c 6f | 77 73 0d 0d 09 46 69 6c |as follo|ws...Fil|
|000036d0| 65 4e 61 6d 65 20 3a 3d | 20 27 54 65 73 74 20 44 |eName :=| 'Test D|
|000036e0| 61 74 61 27 3b 0d 09 41 | 63 74 69 6f 6e 53 74 72 |ata';..A|ctionStr|
|000036f0| 20 3a 3d 20 27 51 75 69 | 74 74 69 6e 67 3f 3f 27 | := 'Qui|tting??'|
|00003700| 3b 0d 0d 09 7b 74 68 65 | 20 6d 65 73 73 61 67 65 |;...{the| message|
|00003710| 20 64 69 73 70 6c 61 79 | 65 64 20 74 6f 20 74 68 | display|ed to th|
|00003720| 65 20 75 73 65 72 20 77 | 6f 75 6c 64 20 62 65 0d |e user w|ould be.|
|00003730| 09 09 09 27 53 61 76 65 | 20 63 68 61 6e 67 65 73 |...'Save| changes|
|00003740| 20 74 6f 20 54 65 73 74 | 20 44 61 74 61 20 62 65 | to Test| Data be|
|00003750| 66 6f 72 65 20 51 75 69 | 74 74 69 6e 67 3f 3f 27 |fore Qui|tting??'|
|00003760| 7d 0d 0d 09 74 68 65 52 | 65 73 70 6f 6e 73 65 20 |}...theR|esponse |
|00003770| 3a 3d 20 59 65 73 4e 6f | 43 61 6e 63 65 6c 44 4c |:= YesNo|CancelDL|
|00003780| 4f 47 28 27 53 61 76 65 | 20 63 68 61 6e 67 65 73 |OG('Save| changes|
|00003790| 20 74 6f 20 27 2c 20 46 | 69 6c 65 4e 61 6d 65 2c | to ', F|ileName,|
|000037a0| 20 27 20 62 65 66 6f 72 | 65 20 27 2c 20 41 63 74 | ' befor|e ', Act|
|000037b0| 69 6f 6e 53 74 72 29 3b | 0d 09 63 61 73 65 20 74 |ionStr);|..case t|
|000037c0| 68 65 52 65 73 70 6f 6e | 73 65 20 6f 66 0d 09 09 |heRespon|se of...|
|000037d0| 59 65 73 52 65 73 70 6f | 6e 73 65 20 3a 20 62 65 |YesRespo|nse : be|
|000037e0| 67 69 6e 0d 09 09 09 09 | 09 09 09 09 09 09 44 6f |gin.....|......Do|
|000037f0| 53 61 76 65 28 2e 2e 2e | 29 3b 0d 09 09 09 09 09 |Save(...|);......|
|00003800| 09 09 09 09 09 43 6c 6f | 73 65 77 69 6e 64 6f 77 |.....Clo|sewindow|
|00003810| 28 2e 2e 2e 29 3b 0d 09 | 09 09 09 09 09 09 09 09 |(...);..|........|
|00003820| 09 2e 2e 2e 0d 09 09 09 | 09 09 09 09 09 09 65 6e |........|......en|
|00003830| 64 3b 0d 09 09 4e 6f 52 | 65 73 70 6f 6e 73 65 20 |d;...NoR|esponse |
|00003840| 3a 20 62 65 67 69 6e 0d | 09 09 09 09 09 09 09 09 |: begin.|........|
|00003850| 09 43 6c 6f 73 65 57 69 | 6e 64 6f 77 28 2e 2e 2e |.CloseWi|ndow(...|
|00003860| 29 3b 0d 09 09 09 09 09 | 09 09 09 09 2e 2e 2e 2e |);......|........|
|00003870| 0d 09 09 09 09 09 09 09 | 09 09 65 6e 64 2e 0d 09 |........|..end...|
|00003880| 09 43 61 6e 63 65 6c 52 | 65 73 70 6f 6e 73 65 3a |.CancelR|esponse:|
|00003890| 20 79 6f 75 72 20 63 68 | 6f 69 63 65 20 6f 66 20 | your ch|oice of |
|000038a0| 63 6f 64 65 0d 09 65 6e | 64 3b 09 7b 63 61 73 65 |code..en|d;.{case|
|000038b0| 7d 0d 0d 09 48 61 76 65 | 20 66 75 6e 20 61 6e 64 |}...Have| fun and|
|000038c0| 20 49 20 68 6f 70 65 20 | 79 6f 75 20 66 69 6e 64 | I hope |you find|
|000038d0| 20 74 68 65 20 75 74 69 | 6c 69 74 69 65 73 20 75 | the uti|lities u|
|000038e0| 73 65 66 75 6c 2c 20 49 | 27 6d 20 6f 70 65 6e 20 |seful, I|'m open |
|000038f0| 74 6f 20 69 64 65 61 73 | 20 61 6e 64 0d 71 75 65 |to ideas| and.que|
|00003900| 73 74 69 6f 6e 73 2e 0d | 0d 44 61 76 69 64 20 4f |stions..|.David O|
|00003910| 27 52 6f 75 72 6b 65 00 | 00 00 00 00 00 00 00 00 |'Rourke.|........|
|00003920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003980| 00 00 01 00 00 00 01 36 | 00 00 00 36 00 00 00 46 |.......6|...6...F|
|00003990| 20 79 6f 75 72 20 63 68 | 6f 69 63 65 20 6f 66 20 | your ch|oice of |
|000039a0| 63 6f 64 65 0d 09 65 6e | 64 3b 09 7b 63 61 73 65 |code..en|d;.{case|
|000039b0| 15 55 74 69 6c 69 74 79 | 20 44 6f 63 75 6d 65 6e |.Utility| Documen|
|000039c0| 74 61 74 69 6f 6e 02 00 | 00 00 54 45 58 54 51 45 |tation..|..TEXTQE|
|000039d0| 00 00 54 45 58 54 51 45 | 44 31 01 00 ff ff ff ff |..TEXTQE|D1......|
|000039e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039f0| 00 00 9c 01 1f 17 00 00 | 38 97 00 00 01 7c 75 65 |........|8....|ue|
|00003a00| 73 74 69 6f 6e 73 2e 0d | 0d 44 61 76 69 64 20 4f |stions..|.David O|
|00003a10| 27 52 6f 75 72 6b 65 03 | d0 3e 03 f0 40 00 10 00 |'Rourke.|.>..@...|
|00003a20| 04 30 44 04 50 46 04 70 | 48 04 90 4a 04 b0 4c 04 |.0D.PF.p|H..J..L.|
|00003a30| d0 4e 04 f0 50 05 10 52 | 05 30 01 05 50 56 05 70 |.N..P..R|.0..PV.p|
|00003a40| 58 05 90 5a 05 b0 5c 05 | d0 5e 05 f0 60 06 10 62 |X..Z..\.|.^..`..b|
|00003a50| 06 30 64 06 50 66 06 70 | 68 06 90 6a 06 b0 6c 06 |.0d.Pf.p|h..j..l.|
|00003a60| d0 6e 06 f0 70 07 10 72 | 07 30 74 07 50 76 07 70 |.n..p..r|.0t.Pv.p|
|00003a70| 78 07 90 7a 07 b0 7c 07 | d0 7e 07 f0 80 08 10 82 |x..z..|.|.~......|
|00003a80| 00 00 00 2a 00 09 06 4d | 6f 6e 61 63 6f 00 00 00 |...*...M|onaco...|
|00003a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ab0| 00 04 00 06 00 02 00 00 | 01 00 00 00 01 36 00 00 |........|.....6..|
|00003ac0| 00 36 00 00 00 46 00 00 | cc 24 01 7a 00 00 00 1c |.6...F..|.$.z....|
|00003ad0| 00 46 00 01 45 46 4e 54 | 00 00 00 12 45 54 41 42 |.F..EFNT|....ETAB|
|00003ae0| 00 00 00 1e 03 eb ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00003af0| 03 ec ff ff 00 00 00 2e | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+